forked from aniani/vim
patch 8.1.1924: using empty string for current buffer is unexpected
Problem: Using empty string for current buffer is unexpected. Solution: Make the argument optional for bufname() and bufnr().
This commit is contained in:
@@ -398,10 +398,10 @@ func Test_argedit()
|
||||
" make sure to use a new buffer number for x when it is loaded
|
||||
bw! x
|
||||
new
|
||||
let a = bufnr('')
|
||||
let a = bufnr()
|
||||
argedit x
|
||||
call assert_equal(a, bufnr(''))
|
||||
call assert_equal('x', bufname(''))
|
||||
call assert_equal(a, bufnr())
|
||||
call assert_equal('x', bufname())
|
||||
%argd
|
||||
bw! x
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user