robin/laufey

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

Justin M. Keyesrefactor(input): rename getchar.c => input.c #40698d25ae8b8c2

master
1.4 KiB47 linesraw
1#pragma once
2
3#include <stdbool.h>
4
5#include "nvim/buffer_defs.h"  // IWYU pragma: keep
6#include "nvim/cmdexpand_defs.h"  // IWYU pragma: keep
7#include "nvim/ex_cmds_defs.h"  // IWYU pragma: keep
8#include "nvim/input_defs.h"
9#include "nvim/types_defs.h"  // IWYU pragma: keep
10#include "nvim/vim_defs.h"  // IWYU pragma: keep
11
12/// flags for do_cmdline()
13enum {
14  DOCMD_VERBOSE  = 0x01,  ///< included command in error message
15  DOCMD_NOWAIT   = 0x02,  ///< don't call wait_return() and friends
16  DOCMD_REPEAT   = 0x04,  ///< repeat exec. until getline() returns NULL
17  DOCMD_KEYTYPED = 0x08,  ///< don't reset KeyTyped
18  DOCMD_EXCRESET = 0x10,  ///< reset exception environment (for debugging
19  DOCMD_KEEPLINE = 0x20,  ///< keep typed line for repeating with "."
20};
21
22/// defines for eval_vars()
23enum {
24  VALID_PATH = 1,
25  VALID_HEAD = 2,
26};
27
28// Whether a command index indicates a user command.
29#define IS_USER_CMDIDX(idx) ((int)(idx) < 0)
30
31enum { DIALOG_MSG_SIZE = 1000, };  ///< buffer size for dialog messages
32
33/// Structure used to save the current state.  Used when executing Normal mode
34/// commands while in any other mode.
35typedef struct {
36  int save_msg_scroll;
37  int save_restart_edit;
38  bool save_msg_didout;
39  int save_State;
40  bool save_finish_op;
41  int save_opcount;
42  int save_reg_executing;
43  bool save_pending_end_reg_executing;
44  tasave_T tabuf;
45} save_state_T;
46
47#include "ex_docmd.h.generated.h"