diff --git a/slang/ChangeLog b/slang/ChangeLog index dc8304789..baa643254 100644 --- a/slang/ChangeLog +++ b/slang/ChangeLog @@ -1,3 +1,9 @@ +2004-10-14 Andrew V. Samoilov + + * sldisply.c (tt_sprintf): Add missed break. + * sldisply.c (SLtt_erase_line): Use tt_write() instead + tt_write_string(). + 2004-09-26 Mike Gorchak * sldisplay.c (SLtt_goto_rc): Disable cursor movement optimizations diff --git a/slang/sldisply.c b/slang/sldisply.c index 3bfd0a8cb..869144d53 100644 --- a/slang/sldisply.c +++ b/slang/sldisply.c @@ -462,7 +462,7 @@ static unsigned int tt_sprintf(char *buf, char *fmt, int x, int y) case '2': case '3': - if (fmt == fmt_max) + if (fmt == fmt_max) break; if (*fmt == 'x') { char x_fmt_buf [4]; @@ -798,7 +798,7 @@ void SLtt_delete_char (void) void SLtt_erase_line (void) { - tt_write_string("\r"); + tt_write ("\r", 1); Cursor_Set = 1; Cursor_c = 0; SLtt_del_eol(); }