]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.203
- typo
[packages/vim.git] / 7.1.203
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.203
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.1.203
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().
14 Files:      src/misc2.c
15
16
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
19 ***************
20 *** 507,517 ****
21         curwin->w_cursor.col = 0;
22       else if (curwin->w_cursor.col >= len)
23       {
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
27   #ifdef FEAT_VISUAL
28                 || (VIsual_active && *p_sel != 'o')
29   #endif
30                 || virtual_active())
31             curwin->w_cursor.col = len;
32 --- 508,523 ----
33         curwin->w_cursor.col = 0;
34       else if (curwin->w_cursor.col >= len)
35       {
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
41   #ifdef FEAT_VISUAL
42                 || (VIsual_active && *p_sel != 'o')
43 + #endif
44 + #ifdef FEAT_VIRTUALEDIT
45 +               || (ve_flags & VE_ONEMORE)
46   #endif
47                 || virtual_active())
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
51 ***************
52 *** 668,669 ****
53 --- 668,671 ----
54   {   /* Add new patch number below this line */
55 + /**/
56 +     203,
57   /**/
58
59 -- 
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 --"
64
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    ///
This page took 0.155567 seconds and 3 git commands to generate.