From 55ebd12c7fa4c97b88a5ca39320ac5d39c13ead0 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 2 Jan 1998 18:12:23 -0500 Subject: snapshot of project "lynx", label v2-7-1ac_0-105 --- src/GridText.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/GridText.c') diff --git a/src/GridText.c b/src/GridText.c index 1848efa4..2b8fa027 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -1112,20 +1112,8 @@ PRIVATE void display_page ARGS3( * Currently implemented only for LINUX */ stop_curses(); - if (LYTraceLogFP) - /* - * Set stderr back to its original value, - * because the current UCChangeTerminalCodepage() - * writes escape sequences to stderr. - KW - */ - *stderr = LYOrigStderr; UCChangeTerminalCodepage(current_char_set, &LYCharSet_UC[current_char_set]); - if (LYTraceLogFP) - /* - * Set stderr back to the log file on return. - */ - *stderr = *LYTraceLogFP; start_curses(); #endif /* LINUX */ #endif /* EXP_CHARTRANS_AUTOSWITCH */ @@ -1787,9 +1775,10 @@ PRIVATE void split_line ARGS2( "........... ", previous->data); } if (line->numstyles > 0 && line->numstyles < MAX_STYLES_ON_LINE) { + int n; inew ++; - memmove(line->styles, &line->styles[inew], - line->numstyles * sizeof(line->styles[0])); + for (n = line->numstyles; n >= 0; n--) + line->styles[n + inew] = line->styles[n]; } else if (line->numstyles == 0) /* FIXME: RJP - shouldn't use 0xffffffff for largest integer */ -- cgit 1.4.1-2-gfad0