]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.184
- updated to 0.7.5
[packages/vim.git] / 7.1.184
CommitLineData
d2415672
AG
1To: vim-dev@vim.org
2Subject: Patch 7.1.184
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.1.184
11Problem: Crash when deleting backwards over a line break in Insert mode.
12Solution: Don't advance the cursor when it's already on the NUL after a
13 line. (Matthew Wozniski)
14Files: src/normal.c
15
16
17*** ../vim-7.1.183/src/normal.c Sun Oct 14 17:15:45 2007
18--- src/normal.c Tue Jan 1 16:40:24 2008
19***************
20*** 5849,5860 ****
21 /* When the NL before the first char has to be deleted we
22 * put the cursor on the NUL after the previous line.
23 * This is a very special case, be careful!
24! * don't adjust op_end now, otherwise it won't work */
25 if ( (cap->oap->op_type == OP_DELETE
26 || cap->oap->op_type == OP_CHANGE)
27 && !lineempty(curwin->w_cursor.lnum))
28 {
29! ++curwin->w_cursor.col;
30 cap->retval |= CA_NO_ADJ_OP_END;
31 }
32 continue;
33--- 5849,5861 ----
34 /* When the NL before the first char has to be deleted we
35 * put the cursor on the NUL after the previous line.
36 * This is a very special case, be careful!
37! * Don't adjust op_end now, otherwise it won't work. */
38 if ( (cap->oap->op_type == OP_DELETE
39 || cap->oap->op_type == OP_CHANGE)
40 && !lineempty(curwin->w_cursor.lnum))
41 {
42! if (*ml_get_cursor() != NUL)
43! ++curwin->w_cursor.col;
44 cap->retval |= CA_NO_ADJ_OP_END;
45 }
46 continue;
47*** ../vim-7.1.183/src/version.c Wed Jan 2 15:34:48 2008
48--- src/version.c Wed Jan 2 16:24:19 2008
49***************
50*** 668,669 ****
51--- 668,671 ----
52 { /* Add new patch number below this line */
53+ /**/
54+ 184,
55 /**/
56
57--
58Not too long ago, cut and paste was done with scissors and glue...
59
60 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
61/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
62\\\ download, build and distribute -- http://www.A-A-P.org ///
63 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.036492 seconds and 4 git commands to generate.