lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV ac102: patch to fix missing screen update after charset changes


From: Андрей Чернов
Subject: LYNX-DEV ac102: patch to fix missing screen update after charset changes
Date: Sun, 21 Dec 1997 15:18:51 +0300 (MSK)

Screen not updated after two commands: '@' (RAW_TOGGLE) and 'o'+'^A'
(assumed charset change) and this patch fix it. Maybe it is not optimized
but works in the right way. First change in the patch inspired by Klaus
Wiede answer, second is mine.


*** src/LYMainLoop.c.old        Mon Nov 24 22:17:20 1997
--- src/LYMainLoop.c    Sat Dec 20 15:06:08 1997
***************
*** 1948,1958 ****
                HTOutputFormat = WWW_SOURCE;
            }
            HEAD_request = HTLoadedDocumentIsHEAD();
!           if (real_cmd == LYK_RELOAD) {
!               HTuncache_current_document();
!           } else {
!               LYforce_no_cache = TRUE;
!           }
  #ifdef NO_ASSUME_SAME_DOC
            /*
             *  Don't assume the reloaded document will be the same. - FM
--- 1948,1954 ----
                HTOutputFormat = WWW_SOURCE;
            }
            HEAD_request = HTLoadedDocumentIsHEAD();
!           HTuncache_current_document();
  #ifdef NO_ASSUME_SAME_DOC
            /*
             *  Don't assume the reloaded document will be the same. - FM
***************
*** 3685,3690 ****
--- 3681,3687 ----
                                               language : ""));
            StrAllocCopy(CurrentNegoCharset, (pref_charset ?
                                              pref_charset : ""));
+           HTuncache_current_document();
            refresh_screen = TRUE; /* to repaint screen */
            break;
  


-- 
Andrey A. Chernov
<address@hidden>
http://www.nagual.pp.ru/~ache/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]