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