1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
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.
14 Solution: Avoid using a negative length. (Christian Brabandt)
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
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)
27 ins_text = vim_strnsave(firstline, (int)ins_len);
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)
36 ins_text = vim_strnsave(firstline, (int)ins_len);
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
43 { /* Add new patch number below this line */
49 "Marriage is a wonderful institution...
50 but who wants to live in an institution?"
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 ///