Fix for miscoloring quote following variable name

This commit is contained in:
ridiculousfish 2014-02-09 15:33:34 -08:00
parent 5ea7f52df2
commit 9b9ee338c1

View File

@ -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;
}