4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: After "U" the cursor can be past end of line. (Adri Verhoef)
12 Solution: Adjust the cursor position in u_undoline().
16 *** ../vim-7.1.248/src/undo.c Sat Nov 10 22:50:20 2007
17 --- src/undo.c Wed Feb 13 15:17:54 2008
23 ! if (curbuf->b_u_line_ptr == NULL ||
24 ! curbuf->b_u_line_lnum > curbuf->b_ml.ml_line_count)
29 ! /* first save the line for the 'u' command */
30 if (u_savecommon(curbuf->b_u_line_lnum - 1,
31 curbuf->b_u_line_lnum + 1, (linenr_T)0) == FAIL)
37 ! if (curbuf->b_u_line_ptr == NULL
38 ! || curbuf->b_u_line_lnum > curbuf->b_ml.ml_line_count)
44 ! /* first save the line for the 'u' command */
45 if (u_savecommon(curbuf->b_u_line_lnum - 1,
46 curbuf->b_u_line_lnum + 1, (linenr_T)0) == FAIL)
51 curbuf->b_u_line_colnr = curwin->w_cursor.col;
52 curwin->w_cursor.col = t;
53 curwin->w_cursor.lnum = curbuf->b_u_line_lnum;
58 *** ../vim-7.1.248/src/version.c Wed Feb 13 12:41:30 2008
59 --- src/version.c Wed Feb 13 15:20:12 2008
63 { /* Add new patch number below this line */
69 How To Keep A Healthy Level Of Insanity:
70 1. At lunch time, sit in your parked car with sunglasses on and point
71 a hair dryer at passing cars. See if they slow down.
73 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
74 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
75 \\\ download, build and distribute -- http://www.A-A-P.org ///
76 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///