diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-21 16:38:57 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-21 16:38:57 -0700 |
commit | 97ea61a407a1f0987edc09a0ea176413ec3898e4 (patch) | |
tree | 1d1e439a2c39c5f41e4976b4f2361384bc0aaeba /reader.cpp | |
parent | 44bd405ed3c33e6002bdefc83153c94031d3376e (diff) |
Fix for parse_util_token_extent doing the wrong thing inside a command
substitution. Fixes https://github.com/fish-shell/fish-shell/issues/833
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |