]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1752: tests: need another test for v9.1.1750 behaviour v9.1.1752
authorGirish Palya <girishji@gmail.com>
Wed, 10 Sep 2025 08:12:16 +0000 (04:12 -0400)
committerChristian Brabandt <cb@256bit.org>
Wed, 10 Sep 2025 08:12:16 +0000 (04:12 -0400)
commitfe0061c6093aac817ed6061b75868a97a116d9c0
treeca1cbbdd160ff99b0139fcfe6a31f661bd2c7518
parent21ecb0d2e2888ded9da04c4f47758cec99063822
patch 9.1.1752: tests: need another test for v9.1.1750 behaviour

Problem:  tests: No test when deleting text after autocompletion with preinsert
          did complete an entry
Solution: Verify, that after deletion autocompletion does not reinsert
          the deleted text. Note: the actual issue was fixed with v9.1.1750.
          (Girish Palya)

Pre v9.1.1750 behaviour:
When autocomplete is enabled with *preinsert*, deleting text after selecting a
longer match could cause unintended reinsertion, e.g.:

- Matches available: "foo" and "foobar".
- User selects "foobar" with Ctrl-N
- User deletes characters back to "foo".
- Autocomplete then incorrectly re-inserts "bar", preventing deletion past "foo".

v9.1.1750 removes the unwanted reinsertion so text can be deleted correctly.

closes: #18259

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_ins_complete.vim
src/version.c