mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Remove useless use of wcslen
This commit is contained in:
parent
42ea2758b6
commit
bac2eef496
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ static void replace_part(const wchar_t *begin, const wchar_t *end, const wchar_t
|
|||
switch (append_mode) {
|
||||
case REPLACE_MODE: {
|
||||
out.append(insert);
|
||||
out_pos = std::wcslen(insert) + (begin - buff);
|
||||
out_pos = out.size();
|
||||
break;
|
||||
}
|
||||
case APPEND_MODE: {
|
||||
|
|
Loading…
Reference in a new issue