mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
parent
469e81e01d
commit
75ae172ba2
1 changed files with 1 additions and 1 deletions
|
@ -2007,7 +2007,7 @@ void reader_data_t::replace_current_token(wcstring &&new_token) {
|
||||||
if (!begin || !end) return;
|
if (!begin || !end) return;
|
||||||
|
|
||||||
size_t offset = begin - buff;
|
size_t offset = begin - buff;
|
||||||
size_t length = end - buff;
|
size_t length = end - begin;
|
||||||
el->replace_substring(offset, length, std::move(new_token));
|
el->replace_substring(offset, length, std::move(new_token));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue