0
0
mirror of https://github.com/vim/vim.git synced 2025-10-23 08:44:20 -04:00

patch 9.1.1689: CmdlineChanged not triggered by <Del>

Problem:  CmdlineChanged not triggered by <Del>
Solution: Use STRCMP() instead of STRNCMP()
          (Shougo Matsushita)

closes: #18101

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Shougo Matsushita
2025-08-26 17:36:49 +02:00
committed by Christian Brabandt
parent a19b019b87
commit 540480697d
3 changed files with 16 additions and 3 deletions

View File

@@ -2183,6 +2183,17 @@ func Test_Cmdline()
\ '0abc1abc2abc3',
\ ], g:log)
" <Del> should trigger CmdlineChanged
let g:log = []
call feedkeys(":foo\<Left>\<Left>\<Del>\<Del>\<Esc>", 'xt')
call assert_equal([
\ 'f',
\ 'fo',
\ 'foo',
\ 'fo',
\ 'f',
\ ], g:log)
unlet g:log
au! CmdlineChanged