]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1228: completion: current position column wrong after got a match v9.1.1228
authorglepnir <glephunter@gmail.com>
Fri, 21 Mar 2025 16:16:21 +0000 (17:16 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 21 Mar 2025 16:16:21 +0000 (17:16 +0100)
commit5753084042e17d794627d77e4300def031ce5498
tree884471d36a9bc6569a03d3eeab2030594d7bf418
parent83d74404bb355956e9ce23fa62dd5bf1f2549c05
patch 9.1.1228: completion: current position column wrong after got a match

Problem:  The current_pos.col was incorrectly updated to the length of
          the matching text. This will cause the next search to start
          from the wrong position.
Solution: current_pos has already been updated in search_str_in_line and
          does not need to be changed (glepnir)

closes: #16941

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