1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
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)
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
22 ++curwin->w_cursor.lnum;
23 del_lines((long)(oap->line_count - 2), FALSE);
25 + if (delete_last_line)
26 + oap->end.lnum = curbuf->b_ml.ml_line_count;
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
36 { /* Add new patch number below this line */
42 hundred-and-one symptoms of being an internet addict:
43 153. You find yourself staring at your "inbox" waiting for new e-mail
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 ///