robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

bfredlMerge pull request #35206 from bfredl/nopreproc_cleanup38986188ba

master
1.0 KiB33 linesraw
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
12enum { TERM_ATTRS_MAX = 1024, };  ///< Maximum columns for terminal highlight attributes
13
14typedef struct {
15  NS ns_id;
16  uint64_t mark_id;
17  int win_row;
18  int win_col;
19} WinExtmark;
20EXTERN kvec_t(WinExtmark) win_extmark_arr INIT( = KV_INITIAL_VALUE);
21
22/// Spell checking variables passed from win_update() to win_line().
23typedef 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"