mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-12 14:51:16 -03:00
forward-word should accept a word of an autosuggestion
https://github.com/fish-shell/fish-shell/issues/435
This commit is contained in:
18
tokenizer.h
18
tokenizer.h
@@ -184,4 +184,22 @@ const wchar_t *tok_get_desc(int type);
|
||||
int tok_get_error(tokenizer_t *tok);
|
||||
|
||||
|
||||
/* Our state machine that implements "one word" movement or erasure. */
|
||||
class move_word_state_machine_t
|
||||
{
|
||||
enum
|
||||
{
|
||||
s_whitespace,
|
||||
s_separator,
|
||||
s_slash,
|
||||
s_nonseparators_except_slash,
|
||||
s_end
|
||||
} state;
|
||||
|
||||
public:
|
||||
move_word_state_machine_t();
|
||||
bool consume_char(wchar_t c);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user