mirror of
https://github.com/neovim/neovim.git
synced 2026-07-29 20:08:03 +00:00
Problem: The screen.c file is much too big.
Solution: Split it in three parts. (Yegappan Lakshmanan, closes vim/vim#4943)
7528d1f6b5
This is an approximation vim-patch 8.1.2057. Applying the patch directly
isn't feasible since our version of screen.c has diverged too much,
however we still introduce drawscreen.c and drawline.c:
- screen.c is now a much smaller file used for low level screen functions
- drawline.c contains everything needed for win_line()
- drawscreen.c contains everything needed for update_screen()
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
25 lines
664 B
C
25 lines
664 B
C
#ifndef NVIM_SCREEN_H
|
|
#define NVIM_SCREEN_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "nvim/buffer_defs.h"
|
|
#include "nvim/fold.h"
|
|
#include "nvim/grid_defs.h"
|
|
|
|
EXTERN match_T screen_search_hl; // used for 'hlsearch' highlight matching
|
|
|
|
/// Array defining what should be done when tabline is clicked
|
|
EXTERN StlClickDefinition *tab_page_click_defs INIT(= NULL);
|
|
|
|
/// Size of the tab_page_click_defs array
|
|
EXTERN long tab_page_click_defs_size INIT(= 0);
|
|
|
|
#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
|