changeset 17360:cb71b5e9e5d9 v8.1.1679

patch 8.1.1679: test using SwapExists autocommand file may fail commit https://github.com/vim/vim/commit/eaa49e40d7e7f84deef14424c84ef1da0796fa58 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 13 18:08:59 2019 +0200 patch 8.1.1679: test using SwapExists autocommand file may fail Problem: Test using SwapExists autocommand file may fail. Solution: Remove the SwapExists autocommand.
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Jul 2019 18:15:04 +0200
parents 2cdf1096554d
children a014860c7154
files src/testdir/test_window_cmd.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_window_cmd.vim
+++ b/src/testdir/test_window_cmd.vim
@@ -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()"
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1679,
+/**/
     1678,
 /**/
     1677,