ex_getln: Make get_histtype return HIST_DEFAULT if needed

This commit is contained in:
ZyX
2014-10-26 14:55:22 +03:00
parent 5674546580
commit fdb68e35e4
3 changed files with 75 additions and 48 deletions

View File

@@ -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