mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +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) {
|
int fish_wcswidth_visible(const wcstring &str) {
|
||||||
size_t res = 0;
|
int res = 0;
|
||||||
for (wchar_t ch : str) {
|
for (wchar_t ch : str) {
|
||||||
if (ch == L'\b') {
|
if (ch == L'\b') {
|
||||||
res += -1;
|
res += -1;
|
||||||
|
|
Loading…
Reference in a new issue