--- rxvt-unicode/src/rxvtperl.xs 2006/10/03 12:13:57 1.106 +++ rxvt-unicode/src/rxvtperl.xs 2006/12/10 15:14:05 1.108 @@ -943,7 +943,7 @@ int GET_CUSTOM (int rend) CODE: - RETVAL = (rend && RS_customMask) >> RS_customShift; + RETVAL = (rend & RS_customMask) >> RS_customShift; OUTPUT: RETVAL @@ -1130,7 +1130,7 @@ int w = WCWIDTH (*wc); if (w) - RETVAL += min (w, 1); + RETVAL += max (w, 1); } rxvt_pop_locale ();