Mercurial > vim
comparison src/change.c @ 18068:1101eacc1444 v8.1.2029
patch 8.1.2029: cannot control 'cursorline' highlighting well
Commit: https://github.com/vim/vim/commit/017ba07fa2cdc578245618717229444fd50c470d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 14 21:01:23 2019 +0200
patch 8.1.2029: cannot control 'cursorline' highlighting well
Problem: Cannot control 'cursorline' highlighting well.
Solution: Add "screenline". (Christian Brabandt, closes https://github.com/vim/vim/issues/4933)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Sep 2019 21:15:04 +0200 |
parents | 06e655ce1938 |
children | e0ec4cd7a865 |
comparison
equal
deleted
inserted
replaced
18067:9e20b59dd8ab | 18068:1101eacc1444 |
---|---|
591 if (hasAnyFolding(wp)) | 591 if (hasAnyFolding(wp)) |
592 set_topline(wp, wp->w_topline); | 592 set_topline(wp, wp->w_topline); |
593 #endif | 593 #endif |
594 // Relative numbering may require updating more. Cursor line | 594 // Relative numbering may require updating more. Cursor line |
595 // highlighting probably needs to be updated if it's below the | 595 // highlighting probably needs to be updated if it's below the |
596 // change. | 596 // change (or is using screenline highlighting) |
597 if (wp->w_p_rnu | 597 if (wp->w_p_rnu |
598 #ifdef FEAT_SYN_HL | 598 #ifdef FEAT_SYN_HL |
599 || (wp->w_p_cul && lnum <= wp->w_last_cursorline) | 599 || ((wp->w_p_cul && lnum <= wp->w_last_cursorline) |
600 || (wp->w_p_culopt_flags & CULOPT_SCRLINE)) | |
600 #endif | 601 #endif |
601 ) | 602 ) |
602 redraw_win_later(wp, SOME_VALID); | 603 redraw_win_later(wp, SOME_VALID); |
603 } | 604 } |
604 } | 605 } |