]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.476
- up to 7.3.600
[packages/vim.git] / 7.3.476
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.476
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.476
11 Problem:    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)
14 Solution:   Avoid using a negative length. (Christian Brabandt)
15 Files:      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...
50 but 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    ///
This page took 0.026444 seconds and 3 git commands to generate.