mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 13:21:01 +08:00
complete.cpp: re-use constant in try_complete_variable
This commit is contained in:
parent
3b60bc1de0
commit
b6ede1c2a3
@ -1203,7 +1203,7 @@ bool completer_t::try_complete_variable(const wcstring &str) {
|
||||
wchar_t c = str.at(in_pos);
|
||||
if (!valid_var_name_char(c)) {
|
||||
// This character cannot be in a variable, reset the dollar.
|
||||
variable_start = -1;
|
||||
variable_start = wcstring::npos;
|
||||
}
|
||||
|
||||
switch (c) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user