mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
refactor: fix runtime_defs.h (#26259)
This commit is contained in:
@@ -2,29 +2,34 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/cmdexpand_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/buffer_defs.h" // IWYU pragma: keep
|
||||
#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep
|
||||
#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep
|
||||
#include "nvim/getchar_defs.h"
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/types_defs.h" // IWYU pragma: keep
|
||||
|
||||
// flags for do_cmdline()
|
||||
#define DOCMD_VERBOSE 0x01 // included command in error message
|
||||
#define DOCMD_NOWAIT 0x02 // don't call wait_return() and friends
|
||||
#define DOCMD_REPEAT 0x04 // repeat exec. until getline() returns NULL
|
||||
#define DOCMD_KEYTYPED 0x08 // don't reset KeyTyped
|
||||
#define DOCMD_EXCRESET 0x10 // reset exception environment (for debugging
|
||||
#define DOCMD_KEEPLINE 0x20 // keep typed line for repeating with "."
|
||||
/// flags for do_cmdline()
|
||||
enum {
|
||||
DOCMD_VERBOSE = 0x01, ///< included command in error message
|
||||
DOCMD_NOWAIT = 0x02, ///< don't call wait_return() and friends
|
||||
DOCMD_REPEAT = 0x04, ///< repeat exec. until getline() returns NULL
|
||||
DOCMD_KEYTYPED = 0x08, ///< don't reset KeyTyped
|
||||
DOCMD_EXCRESET = 0x10, ///< reset exception environment (for debugging
|
||||
DOCMD_KEEPLINE = 0x20, ///< keep typed line for repeating with "."
|
||||
};
|
||||
|
||||
// defines for eval_vars()
|
||||
#define VALID_PATH 1
|
||||
#define VALID_HEAD 2
|
||||
/// defines for eval_vars()
|
||||
enum {
|
||||
VALID_PATH = 1,
|
||||
VALID_HEAD = 2,
|
||||
};
|
||||
|
||||
// Whether a command index indicates a user command.
|
||||
#define IS_USER_CMDIDX(idx) ((int)(idx) < 0)
|
||||
|
||||
// Structure used to save the current state. Used when executing Normal mode
|
||||
// commands while in any other mode.
|
||||
/// Structure used to save the current state. Used when executing Normal mode
|
||||
/// commands while in any other mode.
|
||||
typedef struct {
|
||||
int save_msg_scroll;
|
||||
int save_restart_edit;
|
||||
|
Reference in New Issue
Block a user