diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-02 22:25:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-02 22:25:52 +0100 |
commit | 027387f70c671f62e3e08e0bdd09ec05b0232735 (patch) | |
tree | 4fa32d2d3a305b0330e35aa14db5dce4c0c4098c /src/testdir | |
parent | fa03fd6c4a9fe05274d62ddefd645cb5801d2023 (diff) |
patch 7.4.1037v7.4.1037
Problem: Using "q!" when there is a modified hidden buffer does not unload
the current buffer, resulting in the need to abandon it again.
Solution: When using "q!" unload the current buffer when needed. (Yasuhiro
Matsumoto, Hirohito Higashi)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test31.in | 20 | ||||
-rw-r--r-- | src/testdir/test31.ok | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/testdir/test31.in b/src/testdir/test31.in index 7dc2334781..3ba8431ccf 100644 --- a/src/testdir/test31.in +++ b/src/testdir/test31.in @@ -69,6 +69,26 @@ A 3:close! GA 4:all! :1wincmd w :w >>test.out +:" +:" test ":q!" and hidden buffer. +:bw! Xtest1 Xtest2 Xtest3 Xtest4 +:sp Xtest1 +:wincmd w +:bw! +:set modified +:bot sp Xtest2 +:set modified +:bot sp Xtest3 +:set modified +:wincmd t +:hide +:q! +:w >>test.out +:q! +:w >>test.out +:q! +:call append(line('$'), "Oh, Not finished yet.") +:w >>test.out :qa! ENDTEST diff --git a/src/testdir/test31.ok b/src/testdir/test31.ok index 185bdc768e..39531974c6 100644 --- a/src/testdir/test31.ok +++ b/src/testdir/test31.ok @@ -10,3 +10,5 @@ testtext 1 testtext 3 3 3 testtext 1 testtext 2 2 2 +testtext 3 +testtext 1 |