comparison src/screen.c @ 14662:04c168a6d998 v8.1.0344

patch 8.1.0344: 'hlsearch' highlighting has a gap after /$ commit https://github.com/vim/vim/commit/7ee3f15b21042cb8148980ea486137eaf1b55bcd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 2 15:07:28 2018 +0200 patch 8.1.0344: 'hlsearch' highlighting has a gap after /$ Problem: 'hlsearch' highlighting has a gap after /$. Solution: Remove suspicious code. (Ricky Zhou, closes https://github.com/vim/vim/issues/3400)
author Christian Brabandt <cb@256bit.org>
date Sun, 02 Sep 2018 15:15:07 +0200
parents 100a44722322
children f1b7d308de2f
comparison
equal deleted inserted replaced
14661:2bfea5a64f00 14662:04c168a6d998
5494 * At end of the text line. 5494 * At end of the text line.
5495 */ 5495 */
5496 if (c == NUL) 5496 if (c == NUL)
5497 { 5497 {
5498 #ifdef FEAT_SYN_HL 5498 #ifdef FEAT_SYN_HL
5499 if (eol_hl_off > 0 && vcol - eol_hl_off == (long)wp->w_virtcol
5500 && lnum == wp->w_cursor.lnum)
5501 {
5502 /* highlight last char after line */
5503 --col;
5504 --off;
5505 --vcol;
5506 }
5507
5508 /* Highlight 'cursorcolumn' & 'colorcolumn' past end of the line. */ 5499 /* Highlight 'cursorcolumn' & 'colorcolumn' past end of the line. */
5509 if (wp->w_p_wrap) 5500 if (wp->w_p_wrap)
5510 v = wp->w_skipcol; 5501 v = wp->w_skipcol;
5511 else 5502 else
5512 v = wp->w_leftcol; 5503 v = wp->w_leftcol;