robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
38986188ba
master
1#pragma once 2 3#include <stdbool.h> 4 5#include "nvim/buffer_defs.h" 6#include "nvim/macros_defs.h" 7#include "nvim/pos_defs.h" 8 9/// flags for update_screen() 10/// The higher the value, the higher the priority 11enum { 12UPD_VALID = 10 ,///< buffer not changed, or changes marked with b_mod_* 13UPD_INVERTED = 20 ,///< redisplay inverted part that changed 14UPD_INVERTED_ALL = 25 ,///< redisplay whole inverted part 15UPD_REDRAW_TOP = 30 ,///< display first w_upd_rows screen lines 16UPD_SOME_VALID = 35 ,///< like UPD_NOT_VALID but may scroll 17UPD_NOT_VALID = 40 ,///< buffer needs complete redraw 18UPD_CLEAR = 50 ,///< screen messed up, clear it 19}; 20 21/// While redrawing the screen this flag is set. It means the screen size 22/// ('lines' and 'rows') must not be changed. 23EXTERN bool updating_screen INIT (= false); 24 25/// While computing a statusline and the like we do not want any w_redr_type or 26/// must_redraw to be set. 27EXTERN bool redraw_not_allowed INIT (= false); 28 29/// used for 'hlsearch' highlight matching 30EXTERN match_T screen_search_hl INIT (= {0 }); 31 32/// last lnum where CurSearch was displayed 33EXTERN linenr_T search_hl_has_cursor_lnum INIT (= 0 ); 34 35#define W_ENDCOL (wp ) ((wp)->w_wincol + (wp)->w_width) 36#define W_ENDROW (wp ) ((wp)->w_winrow + (wp)->w_height) 37 38#include "drawscreen.h.generated.h"