[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Re: bug (1) fixed - (patch)
From: |
Leonid Pauzner |
Subject: |
lynx-dev Re: bug (1) fixed - (patch) |
Date: |
Sun, 4 Oct 1998 02:58:12 +0400 (MSD) |
* Restore newline position when return from the Print menu or follow
a link from History page (was broken for partial display mode only):
LYPop() and LYPop_num now reinitialize Newline_partial if happen on getfile
stage. Also remove changes from 1998-06-11 (case LYK_DOWNLOAD)
since this now protected by HText_new() which never start for. - LP
diff -u old/lyhistor.c ./lyhistor.c
--- old/lyhistor.c Sun Sep 20 19:33:18 1998
+++ ./lyhistor.c Sun Oct 4 02:31:08 1998
@@ -322,6 +322,10 @@
doc->isHEAD = history[nhist].isHEAD;
doc->safe = history[nhist].safe;
doc->internal_link = history[nhist].internal_link;
+#ifdef DISP_PARTIAL
+ /* assume we pop the 'doc' to show it soon... */
+ Newline_partial = doc->line; /* reinitialize */
+#endif /* DISP_PARTIAL */
CTRACE(tfp, "LYpop[%d]: address:%s\n title:%s\n",
nhist, doc->address, doc->title);
}
@@ -347,6 +351,10 @@
doc->isHEAD = history[number].isHEAD;
doc->safe = history[number].safe;
doc->internal_link = history[number].internal_link; /* ?? */
+#ifdef DISP_PARTIAL
+ /* assume we pop the 'doc' to show it soon... */
+ Newline_partial = doc->line; /* reinitialize */
+#endif /* DISP_PARTIAL */
}
}
diff -u old/lymainlo.c ./lymainlo.c
--- old/lymainlo.c Fri Oct 2 16:18:30 1998
+++ ./lymainlo.c Sun Oct 4 02:28:32 1998
@@ -985,7 +985,8 @@
* Override newdoc.line with a new value if user
* scrolled the document while downloading.
*/
- if (Newline_partial != newdoc.line)
+ if (Newline_partial != newdoc.line
+ && NumOfLines_partial > 0)
Newline = Newline_partial;
/*
@@ -4928,7 +4929,6 @@
newdoc.isHEAD = history[number].isHEAD;
newdoc.safe = history[number].safe;
newdoc.internal_link = FALSE;
- newdoc.line = curdoc.line; /* need for display_partial ! */
newdoc.link = 0;
HTOutputFormat = HTAtom_for("www/download");
LYUserSpecifiedURL = TRUE;
@@ -5007,7 +5007,6 @@
newdoc.safe = FALSE;
}
newdoc.internal_link = FALSE;
- newdoc.line = curdoc.line; /* need for display_partial ! */
newdoc.link = 0;
HTOutputFormat = HTAtom_for("www/download");
/*
- lynx-dev Re: bug (1) fixed - (patch),
Leonid Pauzner <=