]> git.ipfire.org Git - ipfire-3.x.git/blob - vim/patches/vim-7.3.466.patch0
0dc42934d4d28a703e0e46071d54a3fd93fe3d86
[ipfire-3.x.git] / vim / patches / vim-7.3.466.patch0
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.466
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.466
11 Problem: Get ml_get error when ":behave mswin" was used and selecting
12 several lines. (A. Sinan Unur)
13 Solution: Adjust the end of the operation. (Christian Brabandt)
14 Files: src/ops.c
15
16
17 *** ../vim-7.3.465/src/ops.c 2012-02-22 17:37:55.000000000 +0100
18 --- src/ops.c 2012-03-07 19:27:08.000000000 +0100
19 ***************
20 *** 1957,1962 ****
21 --- 1957,1965 ----
22 ++curwin->w_cursor.lnum;
23 del_lines((long)(oap->line_count - 2), FALSE);
24
25 + if (delete_last_line)
26 + oap->end.lnum = curbuf->b_ml.ml_line_count;
27 +
28 n = (oap->end.col + 1 - !oap->inclusive);
29 if (oap->inclusive && delete_last_line
30 && n > (int)STRLEN(ml_get(oap->end.lnum)))
31 *** ../vim-7.3.465/src/version.c 2012-03-07 19:16:49.000000000 +0100
32 --- src/version.c 2012-03-07 19:29:52.000000000 +0100
33 ***************
34 *** 716,717 ****
35 --- 716,719 ----
36 { /* Add new patch number below this line */
37 + /**/
38 + 466,
39 /**/
40
41 --
42 hundred-and-one symptoms of being an internet addict:
43 153. You find yourself staring at your "inbox" waiting for new e-mail
44 to arrive.
45
46 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
47 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
48 \\\ an exciting new programming language -- http://www.Zimbu.org ///
49 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///