mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
patch 9.0.0506: line number argument for :badd does not work
Problem: Line number argument for :badd does not work. Solution: Set the last cursor position in the new buffer. (closes #11161)
This commit is contained in:
@@ -361,6 +361,13 @@ func Test_badd_options()
|
||||
close
|
||||
close
|
||||
bwipe! SomeNewBuffer
|
||||
|
||||
badd +3 XbaddFile
|
||||
call writefile(range(6), 'XbaddFile', 'D')
|
||||
buf XbaddFile
|
||||
call assert_equal([0, 3, 1, 0], getpos('.'))
|
||||
|
||||
bwipe! XbaddFile
|
||||
endfunc
|
||||
|
||||
func Test_balt()
|
||||
|
||||
Reference in New Issue
Block a user