Fix for parse_util_token_extent doing the wrong thing inside a command

substitution. Fixes https://github.com/fish-shell/fish-shell/issues/833
This commit is contained in:
ridiculousfish
2013-09-21 16:38:57 -07:00
parent 44bd405ed3
commit 97ea61a407
2 changed files with 18 additions and 19 deletions

View File

@@ -2170,7 +2170,7 @@ static void reader_replace_current_token(const wchar_t *new_token)
/* Find current token */
const wchar_t *buff = data->command_line.c_str();
parse_util_token_extent((wchar_t *)buff, data->buff_pos, &begin, &end, 0, 0);
parse_util_token_extent(buff, data->buff_pos, &begin, &end, 0, 0);
if (!begin || !end)
return;