Permalink
Browse files

updated for version 7.3.482

Problem:    With 'cursorbind' set moving up/down does not always keep the same
	    column.
Solution:   Set curswant appropriately. (Gary Johnson)
  • Loading branch information...
1 parent fe39c16 commit bc3542bf0d3999b4271404c84cb205349c964991 @brammool brammool committed Mar 28, 2012
Showing with 6 additions and 0 deletions.
  1. +4 −0 src/move.c
  2. +2 −0 src/version.c
View
@@ -2847,6 +2847,8 @@ do_check_cursorbind()
# ifdef FEAT_VIRTUALEDIT
colnr_T coladd = curwin->w_cursor.coladd;
# endif
+ colnr_T curswant = curwin->w_curswant;
+ int set_curswant = curwin->w_set_curswant;
win_T *old_curwin = curwin;
buf_T *old_curbuf = curbuf;
int restart_edit_save;
@@ -2881,6 +2883,8 @@ do_check_cursorbind()
# ifdef FEAT_VIRTUALEDIT
curwin->w_cursor.coladd = coladd;
# endif
+ curwin->w_curswant = curswant;
+ curwin->w_set_curswant = set_curswant;
/* Make sure the cursor is in a valid position. Temporarily set
* "restart_edit" to allow the cursor to be beyond the EOL. */
View
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 482,
+/**/
481,
/**/
480,

0 comments on commit bc3542b

Please sign in to comment.