neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

drawscreen.h (1340B)


      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
     11 enum {
     12  UPD_VALID        = 10,  ///< buffer not changed, or changes marked with b_mod_*
     13  UPD_INVERTED     = 20,  ///< redisplay inverted part that changed
     14  UPD_INVERTED_ALL = 25,  ///< redisplay whole inverted part
     15  UPD_REDRAW_TOP   = 30,  ///< display first w_upd_rows screen lines
     16  UPD_SOME_VALID   = 35,  ///< like UPD_NOT_VALID but may scroll
     17  UPD_NOT_VALID    = 40,  ///< buffer needs complete redraw
     18  UPD_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.
     23 EXTERN 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.
     27 EXTERN bool redraw_not_allowed INIT( = false);
     28 
     29 /// used for 'hlsearch' highlight matching
     30 EXTERN match_T screen_search_hl INIT( = { 0 });
     31 
     32 /// last lnum where CurSearch was displayed
     33 EXTERN 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"