projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef51e02
)
testsuite: ignore texthistory selection on delete/backspace
author
Christian Hergert
<chergert@redhat.com>
Sun, 26 Dec 2021 20:43:22 +0000
(12:43 -0800)
committer
Christian Hergert
<chergert@redhat.com>
Sun, 26 Dec 2021 20:43:22 +0000
(12:43 -0800)
We don't need to apply these here, as it will clear the selection which is
needed for the undo. Otherwise we won't be able to test that we end up at
the right selection afterwards.
testsuite/gtk/texthistory.c
patch
|
blob
|
history
diff --git
a/testsuite/gtk/texthistory.c
b/testsuite/gtk/texthistory.c
index a740d3523b4abb4fc90c13226928aed20f7994ac..4da0dc5ab03f338dfa046b8dace6598949dc7252 100644
(file)
--- a/
testsuite/gtk/texthistory.c
+++ b/
testsuite/gtk/texthistory.c
@@
-251,8
+251,6
@@
run_test (const Command *commands,
set_selection (text, cmd->location, cmd->end_location);
else if (strlen (cmd->text) == 1)
set_selection (text, cmd->location, -1);
- else
- set_selection (text, -1, -1);
command_delete_key (cmd, text);
break;
@@
-261,8
+259,6
@@
run_test (const Command *commands,
set_selection (text, cmd->location, cmd->end_location);
else if (strlen (cmd->text) == 1)
set_selection (text, cmd->end_location, -1);
- else
- set_selection (text, -1, -1);
command_delete_key (cmd, text);
break;