aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-28 04:43:51 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-28 06:15:26 +0800
commit4baeb96c1bb66c845b4bc58482df4e601485eec3 (patch)
tree4a6bfbead593d25778826ceababf2d3222a51783 /src/nvim/screen.c
parenta201dd265f3f20be954d8b7ee7f65d3eb6f920f6 (diff)
downloadrneovim-4baeb96c1bb66c845b4bc58482df4e601485eec3.tar.gz
rneovim-4baeb96c1bb66c845b4bc58482df4e601485eec3.tar.bz2
rneovim-4baeb96c1bb66c845b4bc58482df4e601485eec3.zip
vim-patch:8.2.4638: superfluous check if a redraw is needed for 'cursorline'
Problem: Superfluous check if a redraw is needed for 'cursorline'. Solution: Remove check_redraw_cursorline(). (closes vim/vim#10030, closes vim/vim#10029) https://github.com/vim/vim/commit/3e559cd88486ffab6b6fb4e0921b4600d137a617 redraw_after_callback() is N/A. Omits changes that just revert code from patch 8.2.4630.
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 41a129dba9..67eee55c51 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -7617,16 +7617,3 @@ win_T *get_win_by_grid_handle(handle_T handle)
}
return NULL;
}
-
-/// Check if the cursor moved and 'cursorline' is set. Mark for a VALID redraw
-/// if needed.
-void check_redraw_cursorline(void)
-{
- // When 'cursorlineopt' is "screenline" need to redraw always.
- if (curwin->w_p_cul
- && (curwin->w_last_cursorline != curwin->w_cursor.lnum
- || (curwin->w_p_culopt_flags & CULOPT_SCRLINE))
- && !char_avail()) {
- redraw_later(curwin, VALID);
- }
-}