]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.763 v7.3.763
authorBram Moolenaar <Bram@vim.org>
Thu, 17 Jan 2013 12:24:08 +0000 (13:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 17 Jan 2013 12:24:08 +0000 (13:24 +0100)
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)

src/normal.c
src/version.c

index 4d0bbdbea524b04f1ba31552efd670ac9bb6c55c..3d5b6d8171cb0fb22f15d3ece854b8f980b4ec31 100644 (file)
@@ -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();
index 012ae87e3dae9499f163d72b609f71559f15a5e6..83b1bc4ad7b3af98df5b2938fa8153c4f4038cb6 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    763,
 /**/
     762,
 /**/