ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.xs
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.106 by root, Tue Oct 3 12:13:57 2006 UTC vs.
Revision 1.108 by root, Sun Dec 10 15:14:05 2006 UTC

941 RETVAL 941 RETVAL
942 942
943int 943int
944GET_CUSTOM (int rend) 944GET_CUSTOM (int rend)
945 CODE: 945 CODE:
946 RETVAL = (rend && RS_customMask) >> RS_customShift; 946 RETVAL = (rend & RS_customMask) >> RS_customShift;
947 OUTPUT: 947 OUTPUT:
948 RETVAL 948 RETVAL
949 949
950int 950int
951SET_CUSTOM (int rend, int new_value) 951SET_CUSTOM (int rend, int new_value)
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}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines