comparison src/testdir/test_buffer.vim @ 30341:65c69861bad0 v9.0.0506

patch 9.0.0506: line number argument for :badd does not work Commit: https://github.com/vim/vim/commit/a2b91036d12e1b406ed5d17bf03f8d1ed05221f6 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 19 18:20:08 2022 +0100 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 https://github.com/vim/vim/issues/11161)
author Bram Moolenaar <Bram@vim.org>
date Mon, 19 Sep 2022 19:30:03 +0200
parents 008808e60963
children 75f7b311ee25
comparison
equal deleted inserted replaced
30340:8740fb5cd365 30341:65c69861bad0
359 new SomeNewBuffer 359 new SomeNewBuffer
360 call assert_equal(3, &numberwidth) 360 call assert_equal(3, &numberwidth)
361 close 361 close
362 close 362 close
363 bwipe! SomeNewBuffer 363 bwipe! SomeNewBuffer
364
365 badd +3 XbaddFile
366 call writefile(range(6), 'XbaddFile', 'D')
367 buf XbaddFile
368 call assert_equal([0, 3, 1, 0], getpos('.'))
369
370 bwipe! XbaddFile
364 endfunc 371 endfunc
365 372
366 func Test_balt() 373 func Test_balt()
367 new SomeNewBuffer 374 new SomeNewBuffer
368 balt +3 OtherBuffer 375 balt +3 OtherBuffer