|
Karsten Hopp |
f7e856 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f7e856 |
Subject: Patch 7.3.763
|
|
Karsten Hopp |
f7e856 |
Fcc: outbox
|
|
Karsten Hopp |
f7e856 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f7e856 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f7e856 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f7e856 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f7e856 |
------------
|
|
Karsten Hopp |
f7e856 |
|
|
Karsten Hopp |
f7e856 |
Patch 7.3.763
|
|
Karsten Hopp |
f7e856 |
Problem: Jumping to a mark does not open a fold if it is in the same line.
|
|
Karsten Hopp |
f7e856 |
(Wiktor Ruben)
|
|
Karsten Hopp |
f7e856 |
Solution: Also compare the column after the jump. (Christian Brabandt)
|
|
Karsten Hopp |
f7e856 |
Files: src/normal.c
|
|
Karsten Hopp |
f7e856 |
|
|
Karsten Hopp |
f7e856 |
|
|
Karsten Hopp |
f7e856 |
*** ../vim-7.3.762/src/normal.c 2012-12-12 18:20:28.000000000 +0100
|
|
Karsten Hopp |
f7e856 |
--- src/normal.c 2013-01-11 22:02:30.000000000 +0100
|
|
Karsten Hopp |
f7e856 |
***************
|
|
Karsten Hopp |
f7e856 |
*** 7523,7529 ****
|
|
Karsten Hopp |
f7e856 |
pos_T *pos;
|
|
Karsten Hopp |
f7e856 |
int c;
|
|
Karsten Hopp |
f7e856 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
f7e856 |
! linenr_T lnum = curwin->w_cursor.lnum;
|
|
Karsten Hopp |
f7e856 |
int old_KeyTyped = KeyTyped; /* getting file may reset it */
|
|
Karsten Hopp |
f7e856 |
#endif
|
|
Karsten Hopp |
f7e856 |
|
|
Karsten Hopp |
f7e856 |
--- 7523,7529 ----
|
|
Karsten Hopp |
f7e856 |
pos_T *pos;
|
|
Karsten Hopp |
f7e856 |
int c;
|
|
Karsten Hopp |
f7e856 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
f7e856 |
! pos_T old_cursor = curwin->w_cursor;
|
|
Karsten Hopp |
f7e856 |
int old_KeyTyped = KeyTyped; /* getting file may reset it */
|
|
Karsten Hopp |
f7e856 |
#endif
|
|
Karsten Hopp |
f7e856 |
|
|
Karsten Hopp |
f7e856 |
***************
|
|
Karsten Hopp |
f7e856 |
*** 7552,7558 ****
|
|
Karsten Hopp |
f7e856 |
#endif
|
|
Karsten Hopp |
f7e856 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
f7e856 |
if (cap->oap->op_type == OP_NOP
|
|
Karsten Hopp |
f7e856 |
! && (pos == (pos_T *)-1 || lnum != curwin->w_cursor.lnum)
|
|
Karsten Hopp |
f7e856 |
&& (fdo_flags & FDO_MARK)
|
|
Karsten Hopp |
f7e856 |
&& old_KeyTyped)
|
|
Karsten Hopp |
f7e856 |
foldOpenCursor();
|
|
Karsten Hopp |
f7e856 |
--- 7552,7558 ----
|
|
Karsten Hopp |
f7e856 |
#endif
|
|
Karsten Hopp |
f7e856 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
f7e856 |
if (cap->oap->op_type == OP_NOP
|
|
Karsten Hopp |
f7e856 |
! && (pos == (pos_T *)-1 || !equalpos(old_cursor, *pos))
|
|
Karsten Hopp |
f7e856 |
&& (fdo_flags & FDO_MARK)
|
|
Karsten Hopp |
f7e856 |
&& old_KeyTyped)
|
|
Karsten Hopp |
f7e856 |
foldOpenCursor();
|
|
Karsten Hopp |
f7e856 |
*** ../vim-7.3.762/src/version.c 2012-12-16 12:50:33.000000000 +0100
|
|
Karsten Hopp |
f7e856 |
--- src/version.c 2013-01-17 13:23:27.000000000 +0100
|
|
Karsten Hopp |
f7e856 |
***************
|
|
Karsten Hopp |
f7e856 |
*** 727,728 ****
|
|
Karsten Hopp |
f7e856 |
--- 727,730 ----
|
|
Karsten Hopp |
f7e856 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f7e856 |
+ /**/
|
|
Karsten Hopp |
f7e856 |
+ 763,
|
|
Karsten Hopp |
f7e856 |
/**/
|
|
Karsten Hopp |
f7e856 |
|
|
Karsten Hopp |
f7e856 |
--
|
|
Karsten Hopp |
f7e856 |
This is an airconditioned room, do not open Windows.
|
|
Karsten Hopp |
f7e856 |
|
|
Karsten Hopp |
f7e856 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f7e856 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f7e856 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f7e856 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|