From 627033f4477e19f9e54c573ff78f39239636c6f7 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 7 Feb 2022 22:17:47 -0800 Subject: [PATCH] fish_wcswidth_visible to use int instead of size_t Credit to lilyball for spotting this. --- src/wcstringutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wcstringutil.cpp b/src/wcstringutil.cpp index 71800061b..9f2e2dadf 100644 --- a/src/wcstringutil.cpp +++ b/src/wcstringutil.cpp @@ -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;