summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2021-11-23 09:18:46 -0600
committerChristian Hergert <chergert@redhat.com>2021-11-23 09:22:17 -0600
commit50e2ef6510b341f44a4a41cf42baee742e74bfd7 (patch)
tree2562cdfcbdaae1f29c9edcf5ec858254afdc3ef4 /testsuite
parentfa458cdab8dc063a78e38cc738322ed706173c65 (diff)
downloadgtksourceview-50e2ef6510b341f44a4a41cf42baee742e74bfd7.tar.gz
vim: avoid inclusivity unless selection is present
This fixes a situation like 4I at position 0 due to inclusivity of the first-char motion. We only need to apply inclusivity when we are applying a change (which implies a selection motion).
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/test-vim-input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/test-vim-input.c b/testsuite/test-vim-input.c
index 1fa62088..c0ae334d 100644
--- a/testsuite/test-vim-input.c
+++ b/testsuite/test-vim-input.c
@@ -106,12 +106,14 @@ test_insert (void)
run_test ("line1", "O\e", "\nline1");
run_test ("", "itesting\ea this.\e", "testing this.");
run_test ("", "3iz\e", "zzz");
+ run_test ("\tPROP_0,\n", "3IPROP\e", "\tPROPPROPPROPPROP_0,\n");
}
static void
test_change (void)
{
run_test ("word here", "ciwnot\e", "not here");
+ run_test ("word here", "wc$\e", "word ");
}
static void