summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.476
blob: 959b906bc9698d201cedc6280db5fec836a9ea25 (about) (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
To: vim_dev@googlegroups.com
Subject: Patch 7.3.476
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.3.476
Problem:    When selecting a block, using "$" to include the end of each line
	    and using "A" and typing a backspace strange things happen.
	    (Yuangchen Xie)
Solution:   Avoid using a negative length. (Christian Brabandt)
Files:	    src/ops.c


*** ../vim-7.3.475/src/ops.c	2012-03-07 19:30:32.000000000 +0100
--- src/ops.c	2012-03-23 12:22:36.000000000 +0100
***************
*** 2602,2608 ****
  	firstline = ml_get(oap->start.lnum) + bd.textcol;
  	if (oap->op_type == OP_APPEND)
  	    firstline += bd.textlen;
! 	if ((ins_len = (long)STRLEN(firstline) - pre_textlen) > 0)
  	{
  	    ins_text = vim_strnsave(firstline, (int)ins_len);
  	    if (ins_text != NULL)
--- 2602,2609 ----
  	firstline = ml_get(oap->start.lnum) + bd.textcol;
  	if (oap->op_type == OP_APPEND)
  	    firstline += bd.textlen;
! 	if (pre_textlen >= 0
! 		     && (ins_len = (long)STRLEN(firstline) - pre_textlen) > 0)
  	{
  	    ins_text = vim_strnsave(firstline, (int)ins_len);
  	    if (ins_text != NULL)
*** ../vim-7.3.475/src/version.c	2012-03-16 20:16:42.000000000 +0100
--- src/version.c	2012-03-23 14:14:49.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     476,
  /**/

-- 
"Marriage is a wonderful institution...
but who wants to live in an institution?"
 - Groucho Marx

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