From d6ecead36406233cc56353dd05f3380f0497630f Mon Sep 17 00:00:00 2001 From: bfredl Date: Tue, 14 Mar 2023 11:49:46 +0100 Subject: 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. --- src/nvim/screen.h | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/nvim/screen.h (limited to 'src/nvim/screen.h') diff --git a/src/nvim/screen.h b/src/nvim/screen.h deleted file mode 100644 index 1d8de8ca21..0000000000 --- a/src/nvim/screen.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef NVIM_SCREEN_H -#define NVIM_SCREEN_H - -#include - -#include "nvim/buffer_defs.h" -#include "nvim/fold.h" -#include "nvim/grid_defs.h" -#include "nvim/macros.h" - -EXTERN match_T screen_search_hl; // used for 'hlsearch' highlight matching - -#define W_ENDCOL(wp) ((wp)->w_wincol + (wp)->w_width) -#define W_ENDROW(wp) ((wp)->w_winrow + (wp)->w_height) - -#ifdef INCLUDE_GENERATED_DECLARATIONS -# include "screen.h.generated.h" -#endif -#endif // NVIM_SCREEN_H -- cgit