neovim

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

drawline.h (1060B)


      1 #pragma once
      2 
      3 #include <stdbool.h>
      4 #include <stdint.h>
      5 
      6 #include "klib/kvec.h"
      7 #include "nvim/fold_defs.h"  // IWYU pragma: keep
      8 #include "nvim/macros_defs.h"
      9 #include "nvim/pos_defs.h"
     10 #include "nvim/types_defs.h"
     11 
     12 enum { TERM_ATTRS_MAX = 1024, };  ///< Maximum columns for terminal highlight attributes
     13 
     14 typedef struct {
     15  NS ns_id;
     16  uint64_t mark_id;
     17  int win_row;
     18  int win_col;
     19 } WinExtmark;
     20 EXTERN kvec_t(WinExtmark) win_extmark_arr INIT( = KV_INITIAL_VALUE);
     21 
     22 /// Spell checking variables passed from win_update() to win_line().
     23 typedef struct {
     24  bool spv_has_spell;         ///< drawn window has spell checking
     25  bool spv_unchanged;         ///< not updating for changed text
     26  int spv_checked_col;        ///< column in "checked_lnum" up to
     27                              ///< which there are no spell errors
     28  linenr_T spv_checked_lnum;  ///< line number for "checked_col"
     29  int spv_cap_col;            ///< column to check for Cap word
     30  linenr_T spv_capcol_lnum;   ///< line number for "cap_col"
     31 } spellvars_T;
     32 
     33 #include "drawline.h.generated.h"