diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-31 06:21:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-31 06:21:55 +0800 |
commit | 63cd2adf3d27436dbaf6a8eda72608d3009ccd3c (patch) | |
tree | b5c3d8d7a6066d662703cc0e9df0dfc1063fe4e9 /test | |
parent | 617810d72d78ce7e1f5e6b6e71ccb6bb5960904d (diff) | |
download | rneovim-63cd2adf3d27436dbaf6a8eda72608d3009ccd3c.tar.gz rneovim-63cd2adf3d27436dbaf6a8eda72608d3009ccd3c.tar.bz2 rneovim-63cd2adf3d27436dbaf6a8eda72608d3009ccd3c.zip |
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
https://github.com/vim/vim/commit/74011dc1fa7bca6c901937173a42e0edce68e080
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_mapping.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/old/testdir/test_mapping.vim b/test/old/testdir/test_mapping.vim index 4abe73ab3d..e4e446c55c 100644 --- a/test/old/testdir/test_mapping.vim +++ b/test/old/testdir/test_mapping.vim @@ -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 |