comparison src/testdir/test_vim9_script.vim @ 21689:10866fd07595 v8.2.1394

patch 8.2.1394: Vim9: compiling a function interferes with command modifiers Commit: https://github.com/vim/vim/commit/2dd0a2c39a3b3fbffc94d0676e472c78d02ebdbd Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 8 15:10:27 2020 +0200 patch 8.2.1394: Vim9: compiling a function interferes with command modifiers Problem: Vim9: compiling a function interferes with command modifiers. Solution: Save and restore command modifiers. (closes https://github.com/vim/vim/issues/6658)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Aug 2020 15:15:04 +0200
parents bb4f55d20951
children f41c646cb8b9
comparison
equal deleted inserted replaced
21688:c94bf5ee110e 21689:10866fd07595
749 call CheckDefFailure(['{', 'let inner = 1', '}', 'echo inner'], 'E1001:') 749 call CheckDefFailure(['{', 'let inner = 1', '}', 'echo inner'], 'E1001:')
750 call CheckDefFailure(['}'], 'E1025:') 750 call CheckDefFailure(['}'], 'E1025:')
751 call CheckDefFailure(['{', 'echo 1'], 'E1026:') 751 call CheckDefFailure(['{', 'echo 1'], 'E1026:')
752 endfunc 752 endfunc
753 753
754 def Test_cmd_modifier()
755 tab echo '0'
756 call CheckDefFailure(['5tab echo 3'], 'E16:')
757 enddef
758
759 func g:NoSuchFunc() 754 func g:NoSuchFunc()
760 echo 'none' 755 echo 'none'
761 endfunc 756 endfunc
762 757
763 def Test_try_catch() 758 def Test_try_catch()