4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When 'virtualedit' is "onemore" then "99|" works but ":normal 99|"
12 doesn't. (Andy Wokula)
13 Solution: Check for "onemore" flag in check_cursor_col().
17 *** ../vim-7.1.202/src/misc2.c Sat Nov 24 21:27:33 2007
18 --- src/misc2.c Fri Jan 4 21:24:46 2008
21 curwin->w_cursor.col = 0;
22 else if (curwin->w_cursor.col >= len)
24 ! /* Allow cursor past end-of-line in Insert mode, restarting Insert
25 ! * mode or when in Visual mode and 'selection' isn't "old" */
26 if ((State & INSERT) || restart_edit
28 || (VIsual_active && *p_sel != 'o')
31 curwin->w_cursor.col = len;
33 curwin->w_cursor.col = 0;
34 else if (curwin->w_cursor.col >= len)
36 ! /* Allow cursor past end-of-line when:
37 ! * - in Insert mode or restarting Insert mode
38 ! * - in Visual mode and 'selection' isn't "old"
39 ! * - 'virtualedit' is set */
40 if ((State & INSERT) || restart_edit
42 || (VIsual_active && *p_sel != 'o')
44 + #ifdef FEAT_VIRTUALEDIT
45 + || (ve_flags & VE_ONEMORE)
48 curwin->w_cursor.col = len;
49 *** ../vim-7.1.202/src/version.c Fri Jan 4 17:46:46 2008
50 --- src/version.c Fri Jan 4 21:22:29 2008
54 { /* Add new patch number below this line */
60 `When any government, or any church for that matter, undertakes to say to
61 its subjects, "This you may not read, this you must not see, this you are
62 forbidden to know," the end result is tyranny and oppression no matter how
63 holy the motives' -- Robert A Heinlein, "If this goes on --"
65 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
66 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67 \\\ download, build and distribute -- http://www.A-A-P.org ///
68 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///