aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.h
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2014-10-26 14:55:22 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 03:37:23 +0300
commitfdb68e35e4c729c7ed097d8ade1da29e5b3f4b31 (patch)
treef68d5079f4dcaa936da97ce40127393827252177 /src/nvim/ex_getln.h
parent5674546580643fab33f0d10babacbc8e7792e287 (diff)
downloadrneovim-fdb68e35e4c729c7ed097d8ade1da29e5b3f4b31.tar.gz
rneovim-fdb68e35e4c729c7ed097d8ade1da29e5b3f4b31.tar.bz2
rneovim-fdb68e35e4c729c7ed097d8ade1da29e5b3f4b31.zip
ex_getln: Make get_histtype return HIST_DEFAULT if needed
Diffstat (limited to 'src/nvim/ex_getln.h')
-rw-r--r--src/nvim/ex_getln.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/ex_getln.h b/src/nvim/ex_getln.h
index 21da8b9d42..24eebdc303 100644
--- a/src/nvim/ex_getln.h
+++ b/src/nvim/ex_getln.h
@@ -27,11 +27,13 @@
/// 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.
+ HIST_DEFAULT = -2, ///< Default (current) history.
+ HIST_INVALID = -1, ///< Unknown history.
+ HIST_CMD = 0, ///< 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