summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1246
blob: 5e1f40618f2d722bc3fb0aca34058a620589aef9 (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
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1246
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.1246
Problem:    Cannot handle negative mouse coordinate from urxvt.
Solution:   Accept '-' where a digit is expected. (Vincent Vinel, closes
            #4326)
Files:	    src/term.c


*** ../vim-8.1.1245/src/term.c	2019-04-28 19:46:17.034060084 +0200
--- src/term.c	2019-05-02 20:15:43.591512270 +0200
***************
*** 4551,4560 ****
  			    continue;	/* no match */
  			else
  			{
! 			    /* Skip over the digits, the final char must
! 			     * follow. */
  			    for (j = slen - 2; j < len && (isdigit(tp[j])
! 							 || tp[j] == ';'); ++j)
  				;
  			    ++j;
  			    if (len < j)	/* got a partial sequence */
--- 4551,4561 ----
  			    continue;	/* no match */
  			else
  			{
! 			    // Skip over the digits, the final char must
! 			    // follow. URXVT can use a negative value, thus
! 			    // also accept '-'.
  			    for (j = slen - 2; j < len && (isdigit(tp[j])
! 				       || tp[j] == '-' || tp[j] == ';'); ++j)
  				;
  			    ++j;
  			    if (len < j)	/* got a partial sequence */
*** ../vim-8.1.1245/src/version.c	2019-05-02 20:17:29.322924398 +0200
--- src/version.c	2019-05-02 20:23:19.224907598 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1246,
  /**/

-- 
The war between Emacs and Vi is over.  Vi has won with 3 to 1.
http://m.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/030/3044/3044s1.html

 /// 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    ///