On Mon, Jan 16, 2012 at 10:22:15PM +0000, Mark Skilbeck wrote:
> On Mon, Jan 16, 2012 at 05:49:14AM -0500, Thomas Dickey wrote:
> > 
> > However, the change is incomplete - it works for the case where the
> > user types 'j' followed by the jump tag, but it does not handle the
> > case where the user selects the tag from the jump-page.
> > 
> 
> Yeah. I don't see how we can account for that use-case. There isn't any 
> special
> code for viewing the jumps file (AFAIK), so it would be impossible to 
> hook-into.


RCS file: RCS/LYMainLoop.c,v
retrieving revision 1.177
diff -u -r1.177 LYMainLoop.c
--- LYMainLoop.c        2012/01/16 10:49:56     1.177
+++ LYMainLoop.c        2012/01/17 00:33:12
@@ -3506,6 +3506,14 @@
     return TRUE;
 }
 
+static void
+fill_JUMP_Params(char **addressp)
+{
+    if (LYJumpFileURL) {
+       check_JUMP_param(addressp);
+    }
+}
+
 static BOOLEAN handle_LYK_JUMP(int c,
                               char *user_input_buffer,
                               char **old_user_input GCC_UNUSED,
@@ -5705,6 +5713,7 @@
                }
                tmpDocInfo = newdoc;
                tmpNewline = -1;
+               fill_JUMP_Params(&newdoc.address);
                getresult = getfile(&newdoc, &tmpNewline);
                if (!reloading && !popped_doc && (tmpNewline >= 0)) {
                    LYSetNewline(tmpNewline);
@@ -5715,6 +5724,7 @@
 #else /* TRACK_INTERNAL_LINKS */
            tmpDocInfo = newdoc;
            tmpNewline = -1;
+           fill_JUMP_Params(&newdoc.address);
            getresult = getfile(&newdoc, &tmpNewline);
            if (!reloading && !popped_doc && (tmpNewline >= 0)) {
                LYSetNewline(tmpNewline);

-- 
Thomas E. Dickey <[email protected]>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to