aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-11 22:40:57 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-02-11 22:50:54 +0100
commit04993f220a304efa029d44a74bbfa83a8530ea6e (patch)
treec5057fc1dbd6ff9add33a5392b2691ea2bcc5974 /src/nvim/testdir
parent2929dbf2233f05f58e094ce4a80fb1320ac6d336 (diff)
downloadrneovim-04993f220a304efa029d44a74bbfa83a8530ea6e.tar.gz
rneovim-04993f220a304efa029d44a74bbfa83a8530ea6e.tar.bz2
rneovim-04993f220a304efa029d44a74bbfa83a8530ea6e.zip
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. https://github.com/vim/vim/commit/ff930cad8a9100eeb04256aab1a14de993c1d7e9
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_edit.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim
index 1bcd245d01..8f815478c2 100644
--- a/src/nvim/testdir/test_edit.vim
+++ b/src/nvim/testdir/test_edit.vim
@@ -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
+