]> granicus.if.org Git - vim/commitdiff
patch 8.1.1394: not restoring t_F2 in registers test v8.1.1394
authorBram Moolenaar <Bram@vim.org>
Sat, 25 May 2019 19:52:30 +0000 (21:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 25 May 2019 19:52:30 +0000 (21:52 +0200)
Problem:    Not restoring t_F2 in registers test.
Solution:   Assign to &t_F2 instead of t_F2. (Andy Massimino, closes #4434)

src/testdir/test_registers.vim
src/version.c

index 1b8653e62abd147d3b1cd128dc4917faea448b86..3f4942e2ef5d7f7e723d3fa2e62122c0d61a8863 100644 (file)
@@ -162,7 +162,7 @@ func Test_recording_esc_sequence()
   call assert_equal(['Quirk', 'Test', 'Quirk', 'Test'], getline(1, 4))
   bwipe!
   if exists('save_F2')
-    let t_F2 = save_F2
+    let &t_F2 = save_F2
   else
     set t_F2=
   endif
index f774932d221cec7aa3afa48728d7a0b68668f35c..2d4c3c01dcf4a660b45cdf029d3f9a95ce57791e 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1394,
 /**/
     1393,
 /**/