forked from aniani/vim
patch 9.0.0509: confusing error for "saveas" command with "nofile" buffer
Problem: Confusing error for "saveas" command with "nofile" buffer. Solution: Give a clearer error message. (closes #11171)
This commit is contained in:
@@ -238,6 +238,12 @@ func Test_saveas()
|
||||
syntax off
|
||||
%bw!
|
||||
call delete('Xsaveas.pl')
|
||||
|
||||
" :saveas fails for "nofile" buffer
|
||||
set buftype=nofile
|
||||
call assert_fails('saveas Xsafile', 'E676: No matching autocommands for buftype=nofile buffer')
|
||||
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_write_errors()
|
||||
|
||||
Reference in New Issue
Block a user