comparison src/testdir/test_vim9_script.vim @ 23954:9c8a20cfa540 v8.2.2519

patch 8.2.2519: Vim9: no reason to keep strange Vi behavior Commit: https://github.com/vim/vim/commit/b8554304c3673b081e9b5996f009fd0e4307e482 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 15 21:30:30 2021 +0100 patch 8.2.2519: Vim9: no reason to keep strange Vi behavior Problem: Vim9: no reason to keep strange Vi behavior. Solution: ":3" and ":3|" both go to line 3. ":|" does not print the line. (closes #7840)
author Bram Moolenaar <Bram@vim.org>
date Mon, 15 Feb 2021 21:45:03 +0100
parents 4279c1c66df1
children d4f7e4138544
comparison
equal deleted inserted replaced
23953:e902fe2d6be6 23954:9c8a20cfa540
20 print 20 print
21 assert_equal('two', Screenline(&lines)) 21 assert_equal('two', Screenline(&lines))
22 :3 22 :3
23 list 23 list
24 assert_equal('three$', Screenline(&lines)) 24 assert_equal('three$', Screenline(&lines))
25
26 # missing command does not print the line
27 var lines =<< trim END
28 vim9script
29 :1|
30 assert_equal('three$', Screenline(&lines))
31 :|
32 assert_equal('three$', Screenline(&lines))
33 END
34 CheckScriptSuccess(lines)
35
25 bwipe! 36 bwipe!
26 37
27 # won't generate anything 38 # won't generate anything
28 if false 39 if false
29 :123 40 :123