mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
fish_wcswidth_visible to use int instead of size_t
Credit to lilyball for spotting this.
This commit is contained in:
parent
e8372db781
commit
627033f447
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ int fish_wcwidth_visible(wchar_t widechar) {
|
|||
}
|
||||
|
||||
int fish_wcswidth_visible(const wcstring &str) {
|
||||
size_t res = 0;
|
||||
int res = 0;
|
||||
for (wchar_t ch : str) {
|
||||
if (ch == L'\b') {
|
||||
res += -1;
|
||||
|
|
Loading…
Reference in a new issue