summaryrefslogtreecommitdiffstats
path: root/patches/source/vim/patches/7.4.343
blob: 141d9816cbb9404a690be65f42a2c77433f09a21 (plain) (blame)
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 7.4.343
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.4.343
Problem:    matchdelete() does not always update the right lines.
Solution:   Fix off-by-one error.  (Ozaki Kiichi)
Files:	    src/window.c


*** ../vim-7.4.342/src/window.c	2014-06-18 21:20:07.236377308 +0200
--- src/window.c	2014-06-25 17:55:34.190793447 +0200
***************
*** 6891,6898 ****
  	    }
  	    if (toplnum == 0 || lnum < toplnum)
  		toplnum = lnum;
! 	    if (botlnum == 0 || lnum > botlnum)
! 		botlnum = lnum;
  	}
  
  	/* Calculate top and bottom lines for redrawing area */
--- 6891,6898 ----
  	    }
  	    if (toplnum == 0 || lnum < toplnum)
  		toplnum = lnum;
! 	    if (botlnum == 0 || lnum >= botlnum)
! 		botlnum = lnum + 1;
  	}
  
  	/* Calculate top and bottom lines for redrawing area */
*** ../vim-7.4.342/src/version.c	2014-06-25 17:44:45.850768919 +0200
--- src/version.c	2014-06-25 17:54:14.258790423 +0200
***************
*** 736,737 ****
--- 736,739 ----
  {   /* Add new patch number below this line */
+ /**/
+     343,
  /**/

-- 
CUSTOMER:     You're not fooling anyone y'know.  Look, isn't there something
              you can do?
DEAD PERSON:  I feel happy... I feel happy.
    [whop]
CUSTOMER:     Ah, thanks very much.
MORTICIAN:    Not at all.  See you on Thursday.
CUSTOMER:     Right.
                                  The Quest for the Holy Grail (Monty Python)

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