# HG changeset patch # User Kenichi Handa # Date 858789166 0 # Node ID 36caec9c2e52c1cfbdefa5687e49bda70af90356 # Parent 6637001cdb4b19accc0f49c48289c323ac2a52f9 (insert_glyphs): Fix a bug which turns up when TS_ins_multi_chars is 0. diff -r 6637001cdb4b -r 36caec9c2e52 src/term.c --- a/src/term.c Tue Mar 18 23:31:34 1997 +0000 +++ b/src/term.c Wed Mar 19 16:32:46 1997 +0000 @@ -944,7 +944,7 @@ cmplus (len); /* The field `last_block' should be set to 1 only at the tail. */ terminal_coding.last_block = 0; - while (len > 0) + while (len-- > 0) { int produced, consumed;