aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-31 10:56:15 +0200
committerGitHub <noreply@github.com>2022-03-31 10:56:15 +0200
commitb2bd8004161853f53bf687b0b90119055fcb5cfb (patch)
tree61da0ef02bc7dbdfff8e232a9e36efe87676c293 /src/nvim/normal.c
parent1184097261260e53519db54548acf2c1e5ab7e68 (diff)
parent595c1a724af9fe93d4ff1df7d5c47e4c9c31a7a6 (diff)
downloadrneovim-b2bd8004161853f53bf687b0b90119055fcb5cfb.tar.gz
rneovim-b2bd8004161853f53bf687b0b90119055fcb5cfb.tar.bz2
rneovim-b2bd8004161853f53bf687b0b90119055fcb5cfb.zip
Merge pull request #17890 from zeertzjq/conceal-virtcol-changed
perf: only redraw concealed line if cursor has moved horizontally
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 6c7595d1a4..72e80952ff 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -1288,13 +1288,6 @@ static void normal_redraw(NormalState *s)
update_topline(curwin);
validate_cursor();
- // If the cursor moves horizontally when 'concealcursor' is active, then the
- // current line needs to be redrawn in order to calculate the correct
- // cursor position.
- if (curwin->w_p_cole > 0 && conceal_cursor_line(curwin)) {
- redrawWinline(curwin, curwin->w_cursor.lnum);
- }
-
if (VIsual_active) {
update_curbuf(INVERTED); // update inverted part
} else if (must_redraw) {