Pull char_input_style_t into a top-level enum

Review feedback from
https://github.com/fish-shell/fish-shell/pull/6713#pullrequestreview-369853776
This commit is contained in:
ridiculousfish
2020-03-07 13:55:19 -08:00
parent e3e82f5873
commit 77ad459aae
3 changed files with 16 additions and 14 deletions

View File

@@ -511,8 +511,8 @@ char_event_t inputter_t::readch(bool allow_commands) {
// Hackish: mark the input style.
res.input_style = evt.get_readline() == readline_cmd_t::self_insert_notfirst
? char_event_t::style_notfirst
: char_event_t::style_normal;
? char_input_style_t::notfirst
: char_input_style_t::normal;
return res;
}
case readline_cmd_t::func_and: {