|
Karsten Hopp |
1be6c0 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
1be6c0 |
Subject: Patch 7.1.203
|
|
Karsten Hopp |
1be6c0 |
Fcc: outbox
|
|
Karsten Hopp |
1be6c0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
1be6c0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
1be6c0 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
1be6c0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
1be6c0 |
------------
|
|
Karsten Hopp |
1be6c0 |
|
|
Karsten Hopp |
1be6c0 |
Patch 7.1.203
|
|
Karsten Hopp |
1be6c0 |
Problem: When 'virtualedit' is "onemore" then "99|" works but ":normal 99|"
|
|
Karsten Hopp |
1be6c0 |
doesn't. (Andy Wokula)
|
|
Karsten Hopp |
1be6c0 |
Solution: Check for "onemore" flag in check_cursor_col().
|
|
Karsten Hopp |
1be6c0 |
Files: src/misc2.c
|
|
Karsten Hopp |
1be6c0 |
|
|
Karsten Hopp |
1be6c0 |
|
|
Karsten Hopp |
1be6c0 |
*** ../vim-7.1.202/src/misc2.c Sat Nov 24 21:27:33 2007
|
|
Karsten Hopp |
1be6c0 |
--- src/misc2.c Fri Jan 4 21:24:46 2008
|
|
Karsten Hopp |
1be6c0 |
***************
|
|
Karsten Hopp |
1be6c0 |
*** 507,517 ****
|
|
Karsten Hopp |
1be6c0 |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
1be6c0 |
else if (curwin->w_cursor.col >= len)
|
|
Karsten Hopp |
1be6c0 |
{
|
|
Karsten Hopp |
1be6c0 |
! /* Allow cursor past end-of-line in Insert mode, restarting Insert
|
|
Karsten Hopp |
1be6c0 |
! * mode or when in Visual mode and 'selection' isn't "old" */
|
|
Karsten Hopp |
1be6c0 |
if ((State & INSERT) || restart_edit
|
|
Karsten Hopp |
1be6c0 |
#ifdef FEAT_VISUAL
|
|
Karsten Hopp |
1be6c0 |
|| (VIsual_active && *p_sel != 'o')
|
|
Karsten Hopp |
1be6c0 |
#endif
|
|
Karsten Hopp |
1be6c0 |
|| virtual_active())
|
|
Karsten Hopp |
1be6c0 |
curwin->w_cursor.col = len;
|
|
Karsten Hopp |
1be6c0 |
--- 508,523 ----
|
|
Karsten Hopp |
1be6c0 |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
1be6c0 |
else if (curwin->w_cursor.col >= len)
|
|
Karsten Hopp |
1be6c0 |
{
|
|
Karsten Hopp |
1be6c0 |
! /* Allow cursor past end-of-line when:
|
|
Karsten Hopp |
1be6c0 |
! * - in Insert mode or restarting Insert mode
|
|
Karsten Hopp |
1be6c0 |
! * - in Visual mode and 'selection' isn't "old"
|
|
Karsten Hopp |
1be6c0 |
! * - 'virtualedit' is set */
|
|
Karsten Hopp |
1be6c0 |
if ((State & INSERT) || restart_edit
|
|
Karsten Hopp |
1be6c0 |
#ifdef FEAT_VISUAL
|
|
Karsten Hopp |
1be6c0 |
|| (VIsual_active && *p_sel != 'o')
|
|
Karsten Hopp |
1be6c0 |
+ #endif
|
|
Karsten Hopp |
1be6c0 |
+ #ifdef FEAT_VIRTUALEDIT
|
|
Karsten Hopp |
1be6c0 |
+ || (ve_flags & VE_ONEMORE)
|
|
Karsten Hopp |
1be6c0 |
#endif
|
|
Karsten Hopp |
1be6c0 |
|| virtual_active())
|
|
Karsten Hopp |
1be6c0 |
curwin->w_cursor.col = len;
|
|
Karsten Hopp |
1be6c0 |
*** ../vim-7.1.202/src/version.c Fri Jan 4 17:46:46 2008
|
|
Karsten Hopp |
1be6c0 |
--- src/version.c Fri Jan 4 21:22:29 2008
|
|
Karsten Hopp |
1be6c0 |
***************
|
|
Karsten Hopp |
1be6c0 |
*** 668,669 ****
|
|
Karsten Hopp |
1be6c0 |
--- 668,671 ----
|
|
Karsten Hopp |
1be6c0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
1be6c0 |
+ /**/
|
|
Karsten Hopp |
1be6c0 |
+ 203,
|
|
Karsten Hopp |
1be6c0 |
/**/
|
|
Karsten Hopp |
1be6c0 |
|
|
Karsten Hopp |
1be6c0 |
--
|
|
Karsten Hopp |
1be6c0 |
`When any government, or any church for that matter, undertakes to say to
|
|
Karsten Hopp |
1be6c0 |
its subjects, "This you may not read, this you must not see, this you are
|
|
Karsten Hopp |
1be6c0 |
forbidden to know," the end result is tyranny and oppression no matter how
|
|
Karsten Hopp |
1be6c0 |
holy the motives' -- Robert A Heinlein, "If this goes on --"
|
|
Karsten Hopp |
1be6c0 |
|
|
Karsten Hopp |
1be6c0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
1be6c0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
1be6c0 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
1be6c0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|