mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
Remove useless use of wcslen
This commit is contained in:
parent
42ea2758b6
commit
bac2eef496
|
@ -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 New Issue
Block a user