mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 08:43:09 -03:00
fish_wcswidth_visible to use int instead of size_t
Credit to lilyball for spotting this.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user