mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-26 07:41:15 -03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user