mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
folds: use Folded highlight even with spell on (#13393)
the highlight was not used with spell enabled on folded lines. Thanks to lervag for the nice report.
This commit is contained in:
@@ -2550,7 +2550,9 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow,
|
||||
*/
|
||||
cur = wp->w_match_head;
|
||||
shl_flag = false;
|
||||
while ((cur != NULL || !shl_flag) && !number_only) {
|
||||
while ((cur != NULL || !shl_flag) && !number_only
|
||||
&& foldinfo.fi_lines == 0
|
||||
) {
|
||||
if (!shl_flag) {
|
||||
shl = &search_hl;
|
||||
shl_flag = true;
|
||||
|
Reference in New Issue
Block a user