fish_wcswidth_visible to use int instead of size_t

Credit to lilyball for spotting this.
This commit is contained in:
ridiculousfish 2022-02-07 22:17:47 -08:00
parent e8372db781
commit 627033f447

View file

@ -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;