Mercurial > vim
diff src/drawline.c @ 18321:2ffe3309958c v8.1.2155
patch 8.1.2155: in a terminal window 'cursorlineopt' does not work properly
Commit: https://github.com/vim/vim/commit/a3817730c0a38ed6371b38b6db2e08547ecc674d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 16 16:31:44 2019 +0200
patch 8.1.2155: in a terminal window 'cursorlineopt' does not work properly
Problem: In a terminal window 'cursorlineopt' does not work properly.
Solution: Check the 'cursorlineopt' value. (closes https://github.com/vim/vim/issues/5055)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Oct 2019 16:45:03 +0200 |
parents | d2228d4cf1f6 |
children | 72a0dbe1c004 |
line wrap: on
line diff
--- a/src/drawline.c +++ b/src/drawline.c @@ -1401,14 +1401,7 @@ win_line( { #ifdef FEAT_TERMINAL if (get_term_attr) - { syntax_attr = term_get_attr(wp->w_buffer, lnum, vcol); - - if (!attr_pri) - char_attr = syntax_attr; - else - char_attr = hl_combine_attr(syntax_attr, char_attr); - } #endif #ifdef FEAT_SYN_HL @@ -2295,7 +2288,8 @@ win_line( if (win_attr != 0) { char_attr = win_attr; - if (wp->w_p_cul && lnum == wp->w_cursor.lnum) + if (wp->w_p_cul && lnum == wp->w_cursor.lnum + && wp->w_p_culopt_flags != CULOPT_NBR) { if (!cul_screenline || (vcol >= left_curline_col && vcol <= right_curline_col))