… | … | ||
---|---|---|---|
1128 | for (wchar_t *wc = wstr; *wc; wc++) | 1128 | for (wchar_t *wc = wstr; *wc; wc++) |
1129 | { | 1129 | { |
1130 | int w = WCWIDTH (*wc); | 1130 | int w = WCWIDTH (*wc); |
1131 | 1131 | ||
1132 | if (w) | 1132 | if (w) |
1133 | RETVAL += min (w, 1); | 1133 | RETVAL += max (w, 1); |
1134 | } | 1134 | } |
1135 | rxvt_pop_locale (); | 1135 | rxvt_pop_locale (); |
1136 | 1136 | ||
1137 | free (wstr); | 1137 | free (wstr); |
1138 | } | 1138 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |