mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
vim-patch:8.0.1205: it is possible to unload a changed buffer
Problem: Using "1q" it is possible to unload a changed buffer. (Rick Howe)
Solution: Check the right window for changes.
ff930cad8a
This commit is contained in:
@@ -1310,3 +1310,16 @@ func! Test_edit_rightleft()
|
||||
set norightleft
|
||||
bw!
|
||||
endfunc
|
||||
|
||||
func Test_edit_quit()
|
||||
edit foo.txt
|
||||
split
|
||||
new
|
||||
call setline(1, 'hello')
|
||||
3wincmd w
|
||||
redraw!
|
||||
call assert_fails('1q', 'E37:')
|
||||
bwipe! foo.txt
|
||||
only
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user