|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.425
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.425
|
|
|
22c937 |
Problem: When 'showbreak' is used "gj" may move to the wrong position.
|
|
|
22c937 |
(Nazri Ramliy)
|
|
|
22c937 |
Solution: Adjust virtcol when 'showbreak' is set. (Christian Brabandt)
|
|
|
22c937 |
Files: src/normal.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.424/src/normal.c 2014-07-23 12:31:17.207990767 +0200
|
|
|
22c937 |
--- src/normal.c 2014-08-29 14:15:14.158440247 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 4509,4521 ****
|
|
|
22c937 |
#if defined(FEAT_LINEBREAK) || defined(FEAT_MBYTE)
|
|
|
22c937 |
if (curwin->w_cursor.col > 0 && curwin->w_p_wrap)
|
|
|
22c937 |
{
|
|
|
22c937 |
/*
|
|
|
22c937 |
* Check for landing on a character that got split at the end of the
|
|
|
22c937 |
* last line. We want to advance a screenline, not end up in the same
|
|
|
22c937 |
* screenline or move two screenlines.
|
|
|
22c937 |
*/
|
|
|
22c937 |
validate_virtcol();
|
|
|
22c937 |
! if (curwin->w_virtcol > curwin->w_curswant
|
|
|
22c937 |
&& (curwin->w_curswant < (colnr_T)width1
|
|
|
22c937 |
? (curwin->w_curswant > (colnr_T)width1 / 2)
|
|
|
22c937 |
: ((curwin->w_curswant - width1) % width2
|
|
|
22c937 |
--- 4509,4527 ----
|
|
|
22c937 |
#if defined(FEAT_LINEBREAK) || defined(FEAT_MBYTE)
|
|
|
22c937 |
if (curwin->w_cursor.col > 0 && curwin->w_p_wrap)
|
|
|
22c937 |
{
|
|
|
22c937 |
+ colnr_T virtcol;
|
|
|
22c937 |
+
|
|
|
22c937 |
/*
|
|
|
22c937 |
* Check for landing on a character that got split at the end of the
|
|
|
22c937 |
* last line. We want to advance a screenline, not end up in the same
|
|
|
22c937 |
* screenline or move two screenlines.
|
|
|
22c937 |
*/
|
|
|
22c937 |
validate_virtcol();
|
|
|
22c937 |
! virtcol = curwin->w_virtcol;
|
|
|
22c937 |
! if (virtcol > (colnr_T)width1 && *p_sbr != NUL)
|
|
|
22c937 |
! virtcol -= vim_strsize(p_sbr);
|
|
|
22c937 |
!
|
|
|
22c937 |
! if (virtcol > curwin->w_curswant
|
|
|
22c937 |
&& (curwin->w_curswant < (colnr_T)width1
|
|
|
22c937 |
? (curwin->w_curswant > (colnr_T)width1 / 2)
|
|
|
22c937 |
: ((curwin->w_curswant - width1) % width2
|
|
|
22c937 |
*** ../vim-7.4.424/src/version.c 2014-08-29 13:49:48.678436915 +0200
|
|
|
22c937 |
--- src/version.c 2014-08-29 14:17:26.938440537 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 743,744 ****
|
|
|
22c937 |
--- 743,746 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 425,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
From "know your smileys":
|
|
|
22c937 |
!-| I-am-a-Cylon-Centurian-with-one-red-eye-bouncing-back-and-forth
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|