Mercurial > vim
diff src/testdir/test_usercommands.vim @ 28743:cf6bba7a9b0f v8.2.4896
patch 8.2.4896: expression in command block does not look after NL
Commit: https://github.com/vim/vim/commit/a13e7acba9928a9c5e97be28946418d8d4323988
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 6 21:24:31 2022 +0100
patch 8.2.4896: expression in command block does not look after NL
Problem: Expression in command block does not look after NL when command is
typed.
Solution: Skip over NL also when not in a script. (closes #10358)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 06 May 2022 22:30:02 +0200 |
parents | 9a7a2908e1a8 |
children | 48b086982c01 |
line wrap: on
line diff
--- a/src/testdir/test_usercommands.vim +++ b/src/testdir/test_usercommands.vim @@ -705,6 +705,11 @@ func Test_usercmd_with_block() END call v9.CheckScriptSuccess(lines) call assert_equal('true', g:result) + unlet g:result + + call feedkeys(":EchoCond\<CR>", 'xt') + call assert_equal('true', g:result) + delcommand EchoCond unlet g:result