comparison src/testdir/test_command_count.vim @ 13782:3be5e8306a3e v8.0.1763

patch 8.0.1763: :argedit does not reuse an empty unnamed buffer commit https://github.com/vim/vim/commit/46a53dfc29689c6a0d80e3820e8b0a48dba6b6ec Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 24 21:58:51 2018 +0200 patch 8.0.1763: :argedit does not reuse an empty unnamed buffer Problem: :argedit does not reuse an empty unnamed buffer. Solution: Add the BLN_CURBUF flag and fix all the side effects. (Christian Brabandt, closes #2713)
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Apr 2018 22:00:07 +0200
parents 03a6aeea2096
children 0d5726f2913b
comparison
equal deleted inserted replaced
13781:37bcbeae1a03 13782:3be5e8306a3e
171 .,$-windo call add(windows, winnr()) 171 .,$-windo call add(windows, winnr())
172 call assert_equal([2, 3, 4], windows) 172 call assert_equal([2, 3, 4], windows)
173 only! 173 only!
174 174
175 exe bufnr . 'buf' 175 exe bufnr . 'buf'
176 bnext
177 let bufnr = bufnr('%') 176 let bufnr = bufnr('%')
178 let buffers = [] 177 let buffers = []
179 .,$-bufdo call add(buffers, bufnr('%')) 178 .,$-bufdo call add(buffers, bufnr('%'))
180 call assert_equal([bufnr, bufnr + 1, bufnr + 2, bufnr + 3, bufnr + 4], buffers) 179 call assert_equal([bufnr, bufnr + 1, bufnr + 2, bufnr + 3, bufnr + 4], buffers)
181 180