# HG changeset patch # User Bram Moolenaar # Date 1358425448 -3600 # Node ID b6148e4a9c397b5dd1716cdac2f96730bd0f353d # Parent b89e2bdcc6e516d7e8cbcb3ece9961ffe18b45fa 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) diff --git a/src/normal.c b/src/normal.c --- a/src/normal.c +++ b/src/normal.c @@ -7523,7 +7523,7 @@ nv_gomark(cap) pos_T *pos; int c; #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 */ #endif @@ -7552,7 +7552,7 @@ nv_gomark(cap) #endif #ifdef FEAT_FOLDING 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) && old_KeyTyped) foldOpenCursor(); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 763, +/**/ 762, /**/ 761,