]> git.ipfire.org Git - ipfire-3.x.git/blob - vim/patches/vim-7.3.482.patch0
vim: Import latest patches from upstream.
[ipfire-3.x.git] / vim / patches / vim-7.3.482.patch0
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.482
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.482
11 Problem: With 'cursorbind' set moving up/down does not always keep the same
12 column.
13 Solution: Set curswant appropriately. (Gary Johnson)
14 Files: src/move.c
15
16
17 *** ../vim-7.3.481/src/move.c 2012-03-16 19:24:21.000000000 +0100
18 --- src/move.c 2012-03-28 14:16:02.000000000 +0200
19 ***************
20 *** 2847,2852 ****
21 --- 2847,2854 ----
22 # ifdef FEAT_VIRTUALEDIT
23 colnr_T coladd = curwin->w_cursor.coladd;
24 # endif
25 + colnr_T curswant = curwin->w_curswant;
26 + int set_curswant = curwin->w_set_curswant;
27 win_T *old_curwin = curwin;
28 buf_T *old_curbuf = curbuf;
29 int restart_edit_save;
30 ***************
31 *** 2881,2886 ****
32 --- 2883,2890 ----
33 # ifdef FEAT_VIRTUALEDIT
34 curwin->w_cursor.coladd = coladd;
35 # endif
36 + curwin->w_curswant = curswant;
37 + curwin->w_set_curswant = set_curswant;
38
39 /* Make sure the cursor is in a valid position. Temporarily set
40 * "restart_edit" to allow the cursor to be beyond the EOL. */
41 *** ../vim-7.3.481/src/version.c 2012-03-28 12:59:53.000000000 +0200
42 --- src/version.c 2012-03-28 14:15:56.000000000 +0200
43 ***************
44 *** 716,717 ****
45 --- 716,719 ----
46 { /* Add new patch number below this line */
47 + /**/
48 + 482,
49 /**/
50
51 --
52 Women are probably the main cause of free software starvation.
53
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ an exciting new programming language -- http://www.Zimbu.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///