mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
vim-patch:9.1.0644: Unnecessary STRLEN() when applying mapping (#29921)
Problem: Unnecessary STRLEN() when applying mapping.
(after v9.1.0642)
Solution: Use m_keylen and vim_strnsave().
(zeertzjq)
closes: vim/vim#15394
74011dc1fa
This commit is contained in:
@@ -1694,11 +1694,11 @@ func Test_map_rhs_starts_with_lhs()
|
||||
endif
|
||||
|
||||
let @a = 'foo'
|
||||
call feedkeys("S\<C-R>a", 'tx')
|
||||
call assert_nobeep('call feedkeys("S\<C-R>a", "tx")')
|
||||
call assert_equal('foo', getline('.'))
|
||||
|
||||
let @a = 'bar'
|
||||
call feedkeys("S\<*C-R>a", 'tx')
|
||||
call assert_nobeep('call feedkeys("S\<*C-R>a", "tx")')
|
||||
call assert_equal('bar', getline('.'))
|
||||
endfor
|
||||
endfor
|
||||
|
Reference in New Issue
Block a user