mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 17:54:10 +00:00
ex_getln: Refactor HIST_\* list of macros to enum
This commit is contained in:
@@ -24,15 +24,17 @@
|
||||
#define WILD_ESCAPE 128
|
||||
#define WILD_ICASE 256
|
||||
|
||||
/*
|
||||
* There are four history tables:
|
||||
*/
|
||||
#define HIST_CMD 0 /* colon commands */
|
||||
#define HIST_SEARCH 1 /* search commands */
|
||||
#define HIST_EXPR 2 /* expressions (from entering = register) */
|
||||
#define HIST_INPUT 3 /* input() lines */
|
||||
#define HIST_DEBUG 4 /* debug commands */
|
||||
#define HIST_COUNT 5 /* number of history tables */
|
||||
/// Present history tables
|
||||
typedef enum {
|
||||
HIST_CMD, ///< Colon commands.
|
||||
HIST_SEARCH, ///< Search commands.
|
||||
HIST_EXPR, ///< Expressions (e.g. from entering = register).
|
||||
HIST_INPUT, ///< input() lines.
|
||||
HIST_DEBUG, ///< Debug commands.
|
||||
} HistoryType;
|
||||
|
||||
/// Number of history tables
|
||||
#define HIST_COUNT (HIST_DEBUG + 1)
|
||||
|
||||
typedef char_u *(*CompleteListItemGetter)(expand_T *, int);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user