lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev dev22 - patch to fix PSRC mode with SOURCE_CACHE!=NONE


From: Vlad Harchev
Subject: lynx-dev dev22 - patch to fix PSRC mode with SOURCE_CACHE!=NONE
Date: Tue, 13 Apr 1999 21:29:25 +0500 (SAMST)

 I have the following problem with dev22:
 When pressing '\' on non-local files, the psrc view is shown, but there is no
way out of this mode. This patch will fix it. 

 Best regards,
  -Vlad


diff -ru lynx-dev22-orig/src/GridText.c lynx-2.8.2dev22-fixed/src/GridText.c
--- lynx-2.8.2dev22-orig/src/GridText.c Tue Apr 13 15:01:11 1999
+++ lynx-2.8.2dev22-fixed/src/GridText.c        Tue Apr 13 21:18:00 1999
@@ -6214,8 +6214,14 @@
                          fp, NULL);
        fclose(fp);
        ok = (ret == HT_LOADED);
-       if (!ok)
+       if (!ok) {
            FREE(source_cache_filename);
+        }    
+#ifdef USE_PSRC            
+        else 
+            if (LYpsrc && psrc_view)
+                HTMainText->source=TRUE;
+#endif       
     }
 
     if (LYCacheSource == SOURCE_CACHE_MEMORY &&
@@ -6240,6 +6246,11 @@
            HTChunkFree(source_cache_chunk);
            source_cache_chunk = NULL;
        }
+#ifdef USE_PSRC            
+        else 
+            if (LYpsrc && psrc_view)
+                HTMainText->source=TRUE;
+#endif    
     }
 
     CTRACE(tfp, "Reparse %s\n", (ok ? "succeeded" : "failed"));


reply via email to

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