diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-26 13:28:14 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-26 13:28:14 +0000 |
commit | bf269ed0b0bd8414eea7bea17465b2738a9a2b55 (patch) | |
tree | b39190c9bf3153f382e4fdbeff9acec9b9d308f6 /src/edit.c | |
parent | c6c1ec4da53db9d292fa3dd081c20123f8261178 (diff) |
patch 8.2.4630: 'cursorline' not always updated with 'culopt' is "screenline"v8.2.4630
Problem: 'cursorline' not always updated with 'cursorlineopt' is
"screenline".
Solution: Call check_redraw_cursorline() more often. (closes #10013)
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index 0edd38be4c..a183324b35 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1058,6 +1058,10 @@ doESCkey: case K_COMMAND: // <Cmd>command<CR> case K_SCRIPT_COMMAND: // <ScriptCmd>command<CR> do_cmdkey_command(c, 0); +#ifdef FEAT_SYN_HL + // Might need to update for 'cursorline'. + check_redraw_cursorline(); +#endif #ifdef FEAT_TERMINAL if (term_use_loop()) // Started a terminal that gets the input, exit Insert mode. |