diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-01-02 18:12:23 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-01-02 18:12:23 -0500 |
commit | 55ebd12c7fa4c97b88a5ca39320ac5d39c13ead0 (patch) | |
tree | 3db71bfe46ed30cb00c3429112923496412c8d5a /src/GridText.c | |
parent | b6c832d07f5a1c68607a9cff0da25cee0de89dad (diff) | |
download | lynx-snapshots-55ebd12c7fa4c97b88a5ca39320ac5d39c13ead0.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-105
Diffstat (limited to 'src/GridText.c')
-rw-r--r-- | src/GridText.c | 17 |
1 files changed, 3 insertions, 14 deletions
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 */ |