# HG changeset patch # User Kim F. Storm # Date 1204405066 0 # Node ID 41d029d73eacb1cbc330d8e0b54c68ac224f2ca1 # Parent f84562a68d152a0ca0ac3e6f926c63d0ed848dc5 (line_draw_cost): Fix invalid glyph check. diff -r f84562a68d15 -r 41d029d73eac src/dispnew.c --- a/src/dispnew.c Sat Mar 01 20:57:25 2008 +0000 +++ b/src/dispnew.c Sat Mar 01 20:57:46 2008 +0000 @@ -1472,7 +1472,7 @@ SET_GLYPH_FROM_CHAR_GLYPH (g, *beg); - if (GLYPH_INVALID_P (g) < 0 + if (GLYPH_INVALID_P (g) || GLYPH_SIMPLE_P (glyph_table_base, glyph_table_len, g)) len += 1; else