To:
[email protected]
Subject: Patch 6.3b.022
Fcc: outbox
From: Bram Moolenaar <
[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------
Patch 6.3b.022
Problem: Using "4v" to select four times the old Visual area may put the
cursor beyond the end of the line. (Jens Paulus)
Solution: Correct the cursor column.
Files: src/normal.c
*** ../vim-6.3b.021/src/normal.c Sun May 16 22:38:46 2004
--- src/normal.c Wed Jun 2 10:32:07 2004
***************
*** 6854,6859 ****
--- 6854,6860 ----
curwin->w_cursor.col += resel_VIsual_col * cap->count0 - 1;
else
curwin->w_cursor.col = resel_VIsual_col;
+ check_cursor_col();
}
if (resel_VIsual_col == MAXCOL)
{
***************
*** 6864,6870 ****
{
validate_virtcol();
curwin->w_curswant = curwin->w_virtcol
! + resel_VIsual_col * cap->count0 - 1;
coladvance(curwin->w_curswant);
}
else
--- 6865,6871 ----
{
validate_virtcol();
curwin->w_curswant = curwin->w_virtcol
! + resel_VIsual_col * cap->count0 - 1;
coladvance(curwin->w_curswant);
}
else
*** ../vim-6.3b.021/src/version.c Tue Jun 1 20:45:40 2004
--- src/version.c Wed Jun 2 10:33:38 2004
***************
*** 643,644 ****
--- 643,646 ----
{ /* Add new patch number below this line */
+ /**/
+ 22,
/**/
--
How To Keep A Healthy Level Of Insanity:
13. Go to a poetry recital and ask why the poems don't rhyme.
/// Bram Moolenaar --
[email protected] --
http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P --
http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims --
http://ICCF.nl/click1.html ///