diff options
| author | lonerover <pathfinder1644@yahoo.com> | 2017-03-14 17:10:45 +0800 |
|---|---|---|
| committer | lonerover <pathfinder1644@yahoo.com> | 2017-03-18 18:10:23 +0800 |
| commit | b65d5ff11bb8e095e7687c3e39fd006ef498b5b9 (patch) | |
| tree | 63bb8b6ab1b80bd01d1feba0783bae8c445ea4a6 /src/nvim/testdir/runtest.vim | |
| parent | 700e13da82bde402bd0387917574efe6754420f4 (diff) | |
| download | rneovim-b65d5ff11bb8e095e7687c3e39fd006ef498b5b9.tar.gz rneovim-b65d5ff11bb8e095e7687c3e39fd006ef498b5b9.tar.bz2 rneovim-b65d5ff11bb8e095e7687c3e39fd006ef498b5b9.zip | |
vim-patch:7.4.2248
Problem: When cancelling the :ptjump prompt a preview window is opened for
a following command.
Solution: Reset g_do_tagpreview. (Hirohito Higashi) Add a test. Avoid that
the test runner gets stuck in trying to close a window.
https://github.com/vim/vim/commit/358308dd99abdd56c6540339e505585d8db7bdfe
Diffstat (limited to 'src/nvim/testdir/runtest.vim')
| -rw-r--r-- | src/nvim/testdir/runtest.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim index 5299fec7c2..0403a53f9c 100644 --- a/src/nvim/testdir/runtest.vim +++ b/src/nvim/testdir/runtest.vim @@ -95,8 +95,17 @@ function RunTheTest(test) endif " Close any extra windows and make the current one not modified. - while winnr('$') > 1 + while 1 + let wincount = winnr('$') + if wincount == 1 + break + endif bwipe! + if wincount == winnr('$') + " Did not manage to close a window. + only! + break + endif endwhile set nomodified endfunc |