]> granicus.if.org Git - vim/commitdiff
patch 8.1.1679: test using SwapExists autocommand file may fail v8.1.1679
authorBram Moolenaar <Bram@vim.org>
Sat, 13 Jul 2019 16:08:59 +0000 (18:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 Jul 2019 16:08:59 +0000 (18:08 +0200)
Problem:    Test using SwapExists autocommand file may fail.
Solution:   Remove the SwapExists autocommand.

src/testdir/test_window_cmd.vim
src/version.c

index b3eecd70508d119ae3dbf96f4b22326d7a700789..4585cd321b8ff72fd6b828d02f6737fe429fdf66 100644 (file)
@@ -42,6 +42,8 @@ function Test_window_cmd_wincmd_gf()
   function s:swap_exists()
     let v:swapchoice = s:swap_choice
   endfunc
+  " Remove the catch-all that runtest.vim adds
+  au! SwapExists
   augroup test_window_cmd_wincmd_gf
     autocmd!
     exec "autocmd SwapExists " . fname . " call s:swap_exists()"
index e48dd6034570bd7d8403baaeb5b292e7e1da50a2..3263f696e71da46b53c838b667f2bbfe5a895979 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1679,
 /**/
     1678,
 /**/