comparison src/testdir/test_vim9_script.vim @ 19473:b09afbebffee v8.2.0294

patch 8.2.0294: cannot use Ex command that is also a function name Commit: https://github.com/vim/vim/commit/5b1c8fe3d588ab450d4646a0088db4efda88200a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 21 18:42:43 2020 +0100 patch 8.2.0294: cannot use Ex command that is also a function name Problem: Cannot use Ex command that is also a function name. Solution: Recognize an Ex command by a colon prefix.
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Feb 2020 18:45:06 +0100
parents 55656a51d2af
children c27837cbe922
comparison
equal deleted inserted replaced
19472:fa1ea6285f80 19473:b09afbebffee
568 assert_fails('so XToDelFunc', 'E933') 568 assert_fails('so XToDelFunc', 'E933')
569 569
570 delete('XToDelFunc') 570 delete('XToDelFunc')
571 enddef 571 enddef
572 572
573 def Test_substitute_cmd()
574 new
575 setline(1, 'something')
576 :substitute(some(other(
577 assert_equal('otherthing', getline(1))
578 enddef
579
573 580
574 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker 581 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker