robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
d25ae8b8c2
master
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 { 14DOCMD_VERBOSE = 0x01 ,///< included command in error message 15DOCMD_NOWAIT = 0x02 ,///< don't call wait_return() and friends 16DOCMD_REPEAT = 0x04 ,///< repeat exec. until getline() returns NULL 17DOCMD_KEYTYPED = 0x08 ,///< don't reset KeyTyped 18DOCMD_EXCRESET = 0x10 ,///< reset exception environment (for debugging 19DOCMD_KEEPLINE = 0x20 ,///< keep typed line for repeating with "." 20}; 21 22/// defines for eval_vars() 23enum { 24VALID_PATH = 1 , 25VALID_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 { 36int save_msg_scroll ; 37int save_restart_edit ; 38bool save_msg_didout ; 39int save_State ; 40bool save_finish_op ; 41int save_opcount ; 42int save_reg_executing ; 43bool save_pending_end_reg_executing ; 44tasave_T tabuf ; 45}save_state_T ; 46 47#include "ex_docmd.h.generated.h"