changeset 15999:f4c282082ec8 v8.1.1005

patch 8.1.1005: test fails because t_F2 is not set commit https://github.com/vim/vim/commit/55d81cd2a15d93dba89b2ff1c988d82789919b6b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 11 08:05:50 2019 +0100 patch 8.1.1005: test fails because t_F2 is not set Problem: Test fails because t_F2 is not set. Solution: Add try-catch.
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Mar 2019 08:15:11 +0100
parents 11dbf04f841a
children 4a614fe36b8d
files src/testdir/test_registers.vim src/version.c
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_registers.vim
+++ b/src/testdir/test_registers.vim
@@ -151,12 +151,17 @@ endfunc
 " characters as an escape sequence.
 func Test_recording_esc_sequence()
   new
-  let save_F2 = &t_F2
+  try
+    let save_F2 = &t_F2
+  catch
+  endtry
   let t_F2 = "\<Esc>OQ"
   call feedkeys("qqiTest\<Esc>", "xt")
   call feedkeys("OQuirk\<Esc>q", "xt")
   call feedkeys("Go\<Esc>@q", "xt")
   call assert_equal(['Quirk', 'Test', 'Quirk', 'Test'], getline(1, 4))
   bwipe!
-  let t_F2 = save_F2
+  if exists('save_F2')
+    let t_F2 = save_F2
+  endif
 endfunc
--- a/src/version.c
+++ b/src/version.c
@@ -780,6 +780,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1005,
+/**/
     1004,
 /**/
     1003,