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: Crash when using fold markers and selecting a visual block that
12 includes a folded line and goes to end of line. (Sam Lidder)
13 Solution: Check for the column to be MAXCOL. (James Vega)
17 *** ../vim-7.3.291/src/screen.c 2011-08-10 14:32:33.000000000 +0200
18 --- src/screen.c 2011-09-02 13:58:18.000000000 +0200
21 /* Visual block mode: highlight the chars part of the block */
22 if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp))
24 ! if (wp->w_old_cursor_lcol + txtcol < (colnr_T)W_WIDTH(wp))
25 len = wp->w_old_cursor_lcol;
27 len = W_WIDTH(wp) - txtcol;
29 /* Visual block mode: highlight the chars part of the block */
30 if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp))
32 ! if (wp->w_old_cursor_lcol != MAXCOL
33 ! && wp->w_old_cursor_lcol + txtcol
34 ! < (colnr_T)W_WIDTH(wp))
35 len = wp->w_old_cursor_lcol;
37 len = W_WIDTH(wp) - txtcol;
38 *** ../vim-7.3.291/src/version.c 2011-09-02 12:27:20.000000000 +0200
39 --- src/version.c 2011-09-02 14:00:03.000000000 +0200
43 { /* Add new patch number below this line */
49 Hacker: Someone skilled in computer programming (good guy).
50 Cracker: A hacker that uses his skills to crack software (bad guy).
52 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
53 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
54 \\\ an exciting new programming language -- http://www.Zimbu.org ///
55 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///