1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00

(get_composition_id): Fix the width calculation for TAB.

This commit is contained in:
Kenichi Handa 2008-06-29 14:27:16 +00:00
parent baed8445dd
commit 8e86803cbf

View file

@ -343,7 +343,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string)
{
int this_width;
ch = XINT (key_contents[i]);
this_width = CHAR_WIDTH (ch);
this_width = (ch == '\t' ? 1 : CHAR_WIDTH (ch));
if (cmp->width < this_width)
cmp->width = this_width;
}