mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 22:51:13 +08:00
Fix for miscoloring quote following variable name
This commit is contained in:
parent
5ea7f52df2
commit
9b9ee338c1
|
@ -1580,6 +1580,8 @@ static void color_argument_internal(const wcstring &buffstr, std::vector<highlig
|
|||
{
|
||||
assert(in_pos < buff_len);
|
||||
in_pos += color_variable(buffstr.c_str() + in_pos, buff_len - in_pos, colors + in_pos);
|
||||
/* subtract one to account for the upcoming loop increment */
|
||||
in_pos -= 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1696,6 +1698,8 @@ static void color_argument_internal(const wcstring &buffstr, std::vector<highlig
|
|||
case L'$':
|
||||
{
|
||||
in_pos += color_variable(buffstr.c_str() + in_pos, buff_len - in_pos, colors + in_pos);
|
||||
/* subtract one to account for the upcoming increment in the loop */
|
||||
in_pos -= 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user