src/tokenizer: Add ":@" to the list of non-path-component chars

This makes kill-path-component stop there.

Fixes #5841.
This commit is contained in:
Fabian Homborg
2019-04-26 19:07:33 +02:00
parent ebf1914a35
commit 009ecfd7e6
3 changed files with 20 additions and 1 deletions

View File

@@ -638,7 +638,7 @@ bool move_word_state_machine_t::consume_char_punctuation(wchar_t c) {
bool move_word_state_machine_t::is_path_component_character(wchar_t c) {
// Always treat separators as first. All this does is ensure that we treat ^ as a string
// character instead of as stderr redirection, which I hypothesize is usually what is desired.
return tok_is_string_character(c, true) && !std::wcschr(L"/={,}'\"", c);
return tok_is_string_character(c, true) && !std::wcschr(L"/={,}'\":@", c);
}
bool move_word_state_machine_t::consume_char_path_components(wchar_t c) {