summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1005
blob: 8a687551304e450d9bc011c95fffbf275ba991bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1005
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.1005 (after 8.1.1003)
Problem:    Test fails because t_F2 is not set.
Solution:   Add try-catch.
Files:	    src/testdir/test_registers.vim


*** ../vim-8.1.1004/src/testdir/test_registers.vim	2019-03-10 09:41:46.474817008 +0100
--- src/testdir/test_registers.vim	2019-03-11 07:54:15.468318601 +0100
***************
*** 151,162 ****
  " characters as an escape sequence.
  func Test_recording_esc_sequence()
    new
!   let save_F2 = &t_F2
    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
  endfunc
--- 151,167 ----
  " characters as an escape sequence.
  func Test_recording_esc_sequence()
    new
!   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!
!   if exists('save_F2')
!     let t_F2 = save_F2
!   endif
  endfunc
*** ../vim-8.1.1004/src/version.c	2019-03-10 09:48:55.711808501 +0100
--- src/version.c	2019-03-11 07:55:54.287601232 +0100
***************
*** 781,782 ****
--- 781,784 ----
  {   /* Add new patch number below this line */
+ /**/
+     1005,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
45. You buy a Captain Kirk chair with a built-in keyboard and mouse.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///