comparison src/testdir/runtest.vim @ 9949:30be4b26a37e v7.4.2248

commit https://github.com/vim/vim/commit/358308dd99abdd56c6540339e505585d8db7bdfe Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 24 21:21:26 2016 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Wed, 24 Aug 2016 21:30:06 +0200
parents 5534cfa2ec87
children 26441931dad7
comparison
equal deleted inserted replaced
9948:f3f309428117 9949:30be4b26a37e
103 if exists("*TearDown") 103 if exists("*TearDown")
104 call TearDown() 104 call TearDown()
105 endif 105 endif
106 106
107 " Close any extra windows and make the current one not modified. 107 " Close any extra windows and make the current one not modified.
108 while winnr('$') > 1 108 while 1
109 let wincount = winnr('$')
110 if wincount == 1
111 break
112 endif
109 bwipe! 113 bwipe!
114 if wincount == winnr('$')
115 " Did not manage to close a window.
116 only!
117 break
118 endif
110 endwhile 119 endwhile
111 set nomodified 120 set nomodified
112 endfunc 121 endfunc
113 122
114 " Source the test script. First grab the file name, in case the script 123 " Source the test script. First grab the file name, in case the script