summaryrefslogtreecommitdiffstats
path: root/src/testdir/runtest.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-07 18:12:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-07 18:12:18 +0200
commit8ce4b7ed85a7c6499bea5eb1312c85ee7a00e364 (patch)
tree5c531adcb869614cd6ed9d7e26fb4c7a9f198275 /src/testdir/runtest.vim
parent9470a4d88acf948af1596101527b3a505f8c14e9 (diff)
patch 8.2.1384: no ATTENTION prompt for :vimgrep first match filev8.2.1384
Problem: No ATTENTION prompt for :vimgrep first match file. Solution: When there is an existing swap file do not keep the dummy buffer. (closes #6649)
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r--src/testdir/runtest.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index f3609f8514..f431748e1e 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -91,6 +91,9 @@ set encoding=utf-8
let s:test_script_fname = expand('%')
au! SwapExists * call HandleSwapExists()
func HandleSwapExists()
+ if exists('g:ignoreSwapExists')
+ return
+ endif
" Ignore finding a swap file for the test script (the user might be
" editing it and do ":make test_name") and the output file.
" Report finding another swap file and chose 'q' to avoid getting stuck.