diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-03-14 11:49:46 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-03-14 13:37:43 +0100 |
commit | d6ecead36406233cc56353dd05f3380f0497630f (patch) | |
tree | 6adad28d9a446e422f114d285107595c563760a8 /src/nvim/move.c | |
parent | ef31444cccdd93f515a8b7a968268cb04e680370 (diff) | |
download | rneovim-d6ecead36406233cc56353dd05f3380f0497630f.tar.gz rneovim-d6ecead36406233cc56353dd05f3380f0497630f.tar.bz2 rneovim-d6ecead36406233cc56353dd05f3380f0497630f.zip |
refactor(screen): screen.c delenda est
drawscreen.c vs screen.c makes absolutely no sense.
The screen exists only to draw upon it, therefore helper functions
are distributed randomly between screen.c and the file that
does the redrawing. In addition screen.c does a lot of drawing on the
screen.
It made more sense for vim/vim as our grid.c is their screen.c
Not sure if we want to dump all the code for option chars into
optionstr.c, so keep these in a optionchar.c for now.
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 6d55955927..1f55362354 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -41,7 +41,6 @@ #include "nvim/plines.h" #include "nvim/popupmenu.h" #include "nvim/pos.h" -#include "nvim/screen.h" #include "nvim/search.h" #include "nvim/strings.h" #include "nvim/types.h" @@ -104,18 +103,6 @@ static void comp_botline(win_T *wp) win_check_anchored_floats(wp); } -/// Redraw when w_cline_row changes and 'relativenumber' or 'cursorline' is set. -/// Also when concealing is on and 'concealcursor' is not active. -void redraw_for_cursorline(win_T *wp) - FUNC_ATTR_NONNULL_ALL -{ - if ((wp->w_valid & VALID_CROW) == 0 && !pum_visible() - && (wp->w_p_rnu || win_cursorline_standout(wp))) { - // win_line() will redraw the number column and cursorline only. - redraw_later(wp, UPD_VALID); - } -} - /// Redraw when w_virtcol changes and 'cursorcolumn' is set or 'cursorlineopt' /// contains "screenline" or when the "CurSearch" highlight is in use. /// Also when concealing is on and 'concealcursor' is active. |