|
Karsten Hopp |
e9630a |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e9630a |
Subject: Patch 7.3.482
|
|
Karsten Hopp |
e9630a |
Fcc: outbox
|
|
Karsten Hopp |
e9630a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e9630a |
Mime-Version: 1.0
|
|
Karsten Hopp |
e9630a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e9630a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e9630a |
------------
|
|
Karsten Hopp |
e9630a |
|
|
Karsten Hopp |
e9630a |
Patch 7.3.482
|
|
Karsten Hopp |
e9630a |
Problem: With 'cursorbind' set moving up/down does not always keep the same
|
|
Karsten Hopp |
e9630a |
column.
|
|
Karsten Hopp |
e9630a |
Solution: Set curswant appropriately. (Gary Johnson)
|
|
Karsten Hopp |
e9630a |
Files: src/move.c
|
|
Karsten Hopp |
e9630a |
|
|
Karsten Hopp |
e9630a |
|
|
Karsten Hopp |
e9630a |
*** ../vim-7.3.481/src/move.c 2012-03-16 19:24:21.000000000 +0100
|
|
Karsten Hopp |
e9630a |
--- src/move.c 2012-03-28 14:16:02.000000000 +0200
|
|
Karsten Hopp |
e9630a |
***************
|
|
Karsten Hopp |
e9630a |
*** 2847,2852 ****
|
|
Karsten Hopp |
e9630a |
--- 2847,2854 ----
|
|
Karsten Hopp |
e9630a |
# ifdef FEAT_VIRTUALEDIT
|
|
Karsten Hopp |
e9630a |
colnr_T coladd = curwin->w_cursor.coladd;
|
|
Karsten Hopp |
e9630a |
# endif
|
|
Karsten Hopp |
e9630a |
+ colnr_T curswant = curwin->w_curswant;
|
|
Karsten Hopp |
e9630a |
+ int set_curswant = curwin->w_set_curswant;
|
|
Karsten Hopp |
e9630a |
win_T *old_curwin = curwin;
|
|
Karsten Hopp |
e9630a |
buf_T *old_curbuf = curbuf;
|
|
Karsten Hopp |
e9630a |
int restart_edit_save;
|
|
Karsten Hopp |
e9630a |
***************
|
|
Karsten Hopp |
e9630a |
*** 2881,2886 ****
|
|
Karsten Hopp |
e9630a |
--- 2883,2890 ----
|
|
Karsten Hopp |
e9630a |
# ifdef FEAT_VIRTUALEDIT
|
|
Karsten Hopp |
e9630a |
curwin->w_cursor.coladd = coladd;
|
|
Karsten Hopp |
e9630a |
# endif
|
|
Karsten Hopp |
e9630a |
+ curwin->w_curswant = curswant;
|
|
Karsten Hopp |
e9630a |
+ curwin->w_set_curswant = set_curswant;
|
|
Karsten Hopp |
e9630a |
|
|
Karsten Hopp |
e9630a |
/* Make sure the cursor is in a valid position. Temporarily set
|
|
Karsten Hopp |
e9630a |
* "restart_edit" to allow the cursor to be beyond the EOL. */
|
|
Karsten Hopp |
e9630a |
*** ../vim-7.3.481/src/version.c 2012-03-28 12:59:53.000000000 +0200
|
|
Karsten Hopp |
e9630a |
--- src/version.c 2012-03-28 14:15:56.000000000 +0200
|
|
Karsten Hopp |
e9630a |
***************
|
|
Karsten Hopp |
e9630a |
*** 716,717 ****
|
|
Karsten Hopp |
e9630a |
--- 716,719 ----
|
|
Karsten Hopp |
e9630a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e9630a |
+ /**/
|
|
Karsten Hopp |
e9630a |
+ 482,
|
|
Karsten Hopp |
e9630a |
/**/
|
|
Karsten Hopp |
e9630a |
|
|
Karsten Hopp |
e9630a |
--
|
|
Karsten Hopp |
e9630a |
Women are probably the main cause of free software starvation.
|
|
Karsten Hopp |
e9630a |
|
|
Karsten Hopp |
e9630a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e9630a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e9630a |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e9630a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|