forked from aniani/vim
patch 9.1.0685: too many strlen() calls in usercmd.c
Problem: too many strlen() calls in usercmd.c
Solution: refactor code to reduce the number or strlen() calls
(John Marriott)
closes: #15516
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
e44e64492c
commit
9e795852f3
@@ -133,6 +133,10 @@ function Test_cmdmods()
|
||||
\ 'silent verbose aboveleft belowright botright tab topleft vertical',
|
||||
\ g:mods)
|
||||
|
||||
kee keep keepm keepma keepmar keepmarks keepa keepalt keepj keepjumps
|
||||
\ keepp keeppatterns MyCmd
|
||||
call assert_equal('keepalt keepjumps keepmarks keeppatterns', g:mods)
|
||||
|
||||
let g:mods = ''
|
||||
command! -nargs=* MyQCmd let g:mods .= '<q-mods> '
|
||||
|
||||
|
||||
Reference in New Issue
Block a user