]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - vim/patches/vim-7.3.476.patch0
vim: Import latest patches from upstream.
[people/ms/ipfire-3.x.git] / vim / patches / vim-7.3.476.patch0
CommitLineData
c6060300
MT
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.476
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.476
11Problem: When selecting a block, using "$" to include the end of each line
12 and using "A" and typing a backspace strange things happen.
13 (Yuangchen Xie)
14Solution: Avoid using a negative length. (Christian Brabandt)
15Files: src/ops.c
16
17
18*** ../vim-7.3.475/src/ops.c 2012-03-07 19:30:32.000000000 +0100
19--- src/ops.c 2012-03-23 12:22:36.000000000 +0100
20***************
21*** 2602,2608 ****
22 firstline = ml_get(oap->start.lnum) + bd.textcol;
23 if (oap->op_type == OP_APPEND)
24 firstline += bd.textlen;
25! if ((ins_len = (long)STRLEN(firstline) - pre_textlen) > 0)
26 {
27 ins_text = vim_strnsave(firstline, (int)ins_len);
28 if (ins_text != NULL)
29--- 2602,2609 ----
30 firstline = ml_get(oap->start.lnum) + bd.textcol;
31 if (oap->op_type == OP_APPEND)
32 firstline += bd.textlen;
33! if (pre_textlen >= 0
34! && (ins_len = (long)STRLEN(firstline) - pre_textlen) > 0)
35 {
36 ins_text = vim_strnsave(firstline, (int)ins_len);
37 if (ins_text != NULL)
38*** ../vim-7.3.475/src/version.c 2012-03-16 20:16:42.000000000 +0100
39--- src/version.c 2012-03-23 14:14:49.000000000 +0100
40***************
41*** 716,717 ****
42--- 716,719 ----
43 { /* Add new patch number below this line */
44+ /**/
45+ 476,
46 /**/
47
48--
49"Marriage is a wonderful institution...
50but who wants to live in an institution?"
51 - Groucho Marx
52
53 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
54/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
55\\\ an exciting new programming language -- http://www.Zimbu.org ///
56 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///