1
0
forked from aniani/vim

patch 8.1.0344: 'hlsearch' highlighting has a gap after /$

Problem:    'hlsearch' highlighting has a gap after /$.
Solution:   Remove suspicious code. (Ricky Zhou, closes #3400)
This commit is contained in:
Bram Moolenaar
2018-09-02 15:07:28 +02:00
parent 3c5b8cd254
commit 7ee3f15b21
3 changed files with 15 additions and 10 deletions

View File

@@ -5496,15 +5496,6 @@ win_line(
if (c == NUL)
{
#ifdef FEAT_SYN_HL
if (eol_hl_off > 0 && vcol - eol_hl_off == (long)wp->w_virtcol
&& lnum == wp->w_cursor.lnum)
{
/* highlight last char after line */
--col;
--off;
--vcol;
}
/* Highlight 'cursorcolumn' & 'colorcolumn' past end of the line. */
if (wp->w_p_wrap)
v = wp->w_skipcol;