4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When pasting a block of text in Insert mode Vim hangs or crashes.
13 Solution: Avoid that the cursor is positioned past the NUL of a line.
17 *** ../vim-7.0.041/src/ops.c Tue Jun 20 20:29:13 2006
18 --- src/ops.c Sun Jul 23 22:36:39 2006
23 if (flags & PUT_CURSEND)
27 curwin->w_cursor = curbuf->b_op_end;
28 curwin->w_cursor.col++;
30 + /* in Insert mode we might be after the NUL, correct for that */
31 + len = (colnr_T)STRLEN(ml_get_curline());
32 + if (curwin->w_cursor.col > len)
33 + curwin->w_cursor.col = len;
36 curwin->w_cursor.lnum = lnum;
37 *** ../vim-7.0.041/src/version.c Sun Jul 23 22:07:55 2006
38 --- src/version.c Sun Jul 23 22:35:13 2006
42 { /* Add new patch number below this line */
48 hundred-and-one symptoms of being an internet addict:
49 45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
51 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
52 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
53 \\\ download, build and distribute -- http://www.A-A-P.org ///
54 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///