comparison 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
comparison
equal deleted inserted replaced
28742:0b11342bb900 28743:cf6bba7a9b0f
703 } 703 }
704 EchoCond 704 EchoCond
705 END 705 END
706 call v9.CheckScriptSuccess(lines) 706 call v9.CheckScriptSuccess(lines)
707 call assert_equal('true', g:result) 707 call assert_equal('true', g:result)
708 unlet g:result
709
710 call feedkeys(":EchoCond\<CR>", 'xt')
711 call assert_equal('true', g:result)
712
708 delcommand EchoCond 713 delcommand EchoCond
709 unlet g:result 714 unlet g:result
710 715
711 let lines =<< trim END 716 let lines =<< trim END
712 command BadCommand { 717 command BadCommand {