aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-28 06:45:15 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-28 10:23:32 +0800
commit595c1a724af9fe93d4ff1df7d5c47e4c9c31a7a6 (patch)
tree3bd554afdfe7b9f51296e49cb4d3fb5d650b3cb8 /src/nvim/normal.c
parent9ce2c73180b741a7969ede940c3c439d0cc9010d (diff)
downloadrneovim-595c1a724af9fe93d4ff1df7d5c47e4c9c31a7a6.tar.gz
rneovim-595c1a724af9fe93d4ff1df7d5c47e4c9c31a7a6.tar.bz2
rneovim-595c1a724af9fe93d4ff1df7d5c47e4c9c31a7a6.zip
perf: only redraw concealed line if cursor has moved horizontally
Building upon #17889, this moves conceal redrawing logic into move.c, so that concealed line is only redrawn 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) {