Mercurial > vim
comparison src/screen.c @ 12582:97f0c74976c6 v8.0.1169
patch 8.0.1169: highlignting one char too many with 'list' and 'cul'
commit https://github.com/vim/vim/commit/5ece3e359c4b96d0f9bf1ce690223545f40f34b8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 1 14:35:02 2017 +0200
patch 8.0.1169: highlignting one char too many with 'list' and 'cul'
Problem: Highlignting one char too many with 'list' and 'cul'.
Solution: Check for 'list' being active. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2177)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 01 Oct 2017 14:45:04 +0200 |
parents | ba55861aa52c |
children | 4e846c9d61a8 |
comparison
equal
deleted
inserted
replaced
12581:727965036b90 | 12582:97f0c74976c6 |
---|---|
4167 search_attr = shl->attr_cur; | 4167 search_attr = shl->attr_cur; |
4168 if (shl != &search_hl && cur != NULL) | 4168 if (shl != &search_hl && cur != NULL) |
4169 cur = cur->next; | 4169 cur = cur->next; |
4170 } | 4170 } |
4171 /* Only highlight one character after the last column. */ | 4171 /* Only highlight one character after the last column. */ |
4172 if (*ptr == NUL && did_line_attr >= 1) | 4172 if (*ptr == NUL && (did_line_attr >= 1 |
4173 || (wp->w_p_list && lcs_eol_one == -1))) | |
4173 search_attr = 0; | 4174 search_attr = 0; |
4174 } | 4175 } |
4175 #endif | 4176 #endif |
4176 | 4177 |
4177 #ifdef FEAT_DIFF | 4178 #ifdef FEAT_DIFF |