diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-01-17 13:24:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-01-17 13:24:08 +0100 |
commit | 8754deb3b622186ff5efa0e5547a392aaed6a1c7 (patch) | |
tree | 62e640e10e48cf2b1385485b97eaf62b2e72dc14 /src/normal.c | |
parent | 14e28811b3c37beaf310ab755cd7e0a1dc7f3395 (diff) | |
download | vim-git-8754deb3b622186ff5efa0e5547a392aaed6a1c7.tar.gz |
updated for version 7.3.763v7.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)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c index 4d0bbdbea..3d5b6d817 100644 --- 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(); |