From 565b39a8569153267d5a837bf9744aac925ca15d Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sat, 1 Mar 2008 20:57:46 +0000 Subject: (line_draw_cost): Fix invalid glyph check. --- src/dispnew.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dispnew.c') diff --git a/src/dispnew.c b/src/dispnew.c index 122f77c2962..096bca9d460 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -1472,7 +1472,7 @@ line_draw_cost (matrix, vpos) 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 -- cgit v1.2.1