4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Display problem when 'hls' and 'cursorcolumn' are set and
12 searching for "$". (John Mullin) Also when scrolling
13 horizontally when 'wrap' is off.
14 Solution: Keep track of the column where highlighting was set. Check the
15 column offset when skipping characters.
19 *** ../vim-7.1.151/src/screen.c Mon Sep 17 22:37:05 2007
20 --- src/screen.c Fri Oct 19 15:18:49 2007
24 int syntax_attr = 0; /* attributes desired by syntax */
25 int has_syntax = FALSE; /* this buffer has syntax highl. */
27 + int eol_hl_off = 0; /* 1 if highlighted char after EOL */
30 int has_spell = FALSE; /* this buffer has spell checking */
35 #ifdef FEAT_SEARCH_EXTRA
36 long prevcol = (long)(ptr - line) - (c == NUL);
38 + /* we're not really at that column when skipping some text */
39 + if ((wp->w_p_wrap ? wp->w_skipcol : wp->w_leftcol) > prevcol)
43 /* invert at least one char, used for Visual and empty line or
47 ScreenAttrs[off] = char_attr;
73 + if (eol_hl_off > 0 && vcol - eol_hl_off == (long)wp->w_virtcol)
75 + /* highlight last char after line */
81 /* Highlight 'cursorcolumn' past end of the line. */
87 vcol = v + col - win_col_off(wp);
89 ! && (int)wp->w_virtcol >= vcol
90 && (int)wp->w_virtcol < W_WIDTH(wp) * (row - startrow + 1)
92 && lnum != wp->w_cursor.lnum
95 vcol = v + col - win_col_off(wp);
97 ! && (int)wp->w_virtcol >= vcol - eol_hl_off
98 && (int)wp->w_virtcol < W_WIDTH(wp) * (row - startrow + 1)
100 && lnum != wp->w_cursor.lnum
101 *** ../vim-7.1.151/src/version.c Thu Nov 8 13:03:33 2007
102 --- src/version.c Thu Nov 8 14:48:59 2007
106 { /* Add new patch number below this line */
112 From "know your smileys":
113 2B|^2B Message from Shakespeare
115 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
116 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
117 \\\ download, build and distribute -- http://www.A-A-P.org ///
118 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///