robin/laufey

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

Justin M. KeyesMerge #39485 refactor(globals): SearchState9bfa337899

master
665 B17 linesraw
1#pragma once
2
3#include <stdbool.h>
4
5#include "nvim/pos_defs.h"
6
7/// Search/highlight subsystem state.
8typedef struct {
9  bool hl_match;         ///< Highlight the match, starting at cursor pos.
10  linenr_T match_lines;  ///< Lines after the match (0 for a match within one line).
11  colnr_T match_endcol;  ///< Column just after the match in the last line.
12  linenr_T first_line;   ///< For :{FIRST},{last}s/pat.
13  linenr_T last_line;    ///< For :{first},{LAST}s/pat.
14  bool no_smartcase;     ///< Don't use 'smartcase' once.
15  int cmdlen;            ///< Length of previous search cmd.
16  bool no_hlsearch;      ///< Don't use 'hlsearch' temporarily.
17} SearchState;