lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev FIRST_LINK, LAST_LINK ('^', '$') bug


From: Klaus Weide
Subject: lynx-dev FIRST_LINK, LAST_LINK ('^', '$') bug
Date: Tue, 25 Apr 2000 20:16:20 -0500 (CDT)

handle_LYK_FIRST_LINK:

    for (i = curdoc.link - 1; i >= 0; i--) {
        if (links[i].ly != links[curdoc.link].ly) {
            set_curdoc_link(i + 1);
            break;
        }
    }

This logic fails when the link it should go to is the very first link
on the displayed page.  Put differently, it fails when the current
link is within the last screen line that contains any links.

handle_LYK_LAST_LINK:
    for (i = curdoc.link; i < nlinks; i++) {
        if (links[i].ly != links[curdoc.link].ly) {
            set_curdoc_link(i - 1);
            break;
        }
    }

Same here, it fails when the link it should go to is the last link on
the displayed page.


   Klaus


reply via email to

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