mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.763
Problem: Jumping to a mark does not open a fold if it is in the same line. (Wiktor Ruben) Solution: Also compare the column after the jump. (Christian Brabandt)
This commit is contained in:
@@ -7523,7 +7523,7 @@ nv_gomark(cap)
|
|||||||
pos_T *pos;
|
pos_T *pos;
|
||||||
int c;
|
int c;
|
||||||
#ifdef FEAT_FOLDING
|
#ifdef FEAT_FOLDING
|
||||||
linenr_T lnum = curwin->w_cursor.lnum;
|
pos_T old_cursor = curwin->w_cursor;
|
||||||
int old_KeyTyped = KeyTyped; /* getting file may reset it */
|
int old_KeyTyped = KeyTyped; /* getting file may reset it */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -7552,7 +7552,7 @@ nv_gomark(cap)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_FOLDING
|
#ifdef FEAT_FOLDING
|
||||||
if (cap->oap->op_type == OP_NOP
|
if (cap->oap->op_type == OP_NOP
|
||||||
&& (pos == (pos_T *)-1 || lnum != curwin->w_cursor.lnum)
|
&& (pos == (pos_T *)-1 || !equalpos(old_cursor, *pos))
|
||||||
&& (fdo_flags & FDO_MARK)
|
&& (fdo_flags & FDO_MARK)
|
||||||
&& old_KeyTyped)
|
&& old_KeyTyped)
|
||||||
foldOpenCursor();
|
foldOpenCursor();
|
||||||
|
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
763,
|
||||||
/**/
|
/**/
|
||||||
762,
|
762,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user