lynx-dev
[Top][All Lists]
Advanced

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

[Lynx-dev] fixs for goto popup and other bugs


From: PBM .
Subject: [Lynx-dev] fixs for goto popup and other bugs
Date: Thu, 7 Jun 2007 18:45:11 +0200

--- /lynx2.8.7dev.5a/src/LYStrings.c  Wed Jun  6 12:40:01 2007
+++ /lynx2.8.7dev.5x/src/LYStrings.c  Thu Jun  7 18:23:46 2007
@@ -56,6 +56,12 @@
static HTList *URL_edit_history;
static HTList *MAIL_edit_history;

+/*
+ * This is used only when user decide to use numbers to select urls from
+ * popup to make sure that next time numbers would not appear in popup
+ */
+static BOOL no_entry = FALSE;
+
/* If you want to add mouse support for some new platform, it's fairly
 * simple to do.  Once you've determined the X and Y coordinates of
 * the mouse event, loop through the elements in the links[] array and
@@ -3434,6 +3440,7 @@
    char *p = temp;
    int num;

+    no_entry = TRUE;
    /*
     * Load the c argument into the prompt buffer.
     */
@@ -3450,6 +3457,7 @@
       *rel = '\0';
       return (0);
    }
+    no_entry = FALSE;

    *rel = '\0';
    num = atoi(p);
@@ -4086,8 +4094,6 @@
    /*
     * Clear the command line and write the popup statusline.  - FM
     */
-    LYmove((LYlines - 2), 0);
-    LYclrtoeol();
    if (disabled) {
       popup_status_msg = CHOICE_LIST_UNM_MSG;
    } else if (!for_mouse) {
@@ -4550,8 +4556,6 @@
           LYrefresh();
           break;

-       case LYK_PREV:
-           /* FALLTHRU */
       case LYK_NEXT:
           if (recall && *prev_target_buffer == '\0') {
               /*
@@ -4944,7 +4948,8 @@
                                                  -1,
                                                  FALSE,
                                                  FALSE,
-                                                  TRUE);
+                                                  (keypad_mode ==
NUMBERS_AS_ARROWS)
+                                                  ? FALSE : TRUE);
                   if (cur_choice >= 0) {
                       if (recall == RECALL_CMD)
                           _statusline(": ");
@@ -4979,7 +4984,7 @@
            * Terminate the string and return.
            */
           LYstrncpy(inputline, MyEdit.buffer, (int) bufsize);
-           if (!hidden)
+           if (!hidden && !no_entry)
               LYAddToCloset(recall, MyEdit.buffer);
           CTRACE((tfp, "LYgetstr(%s) LYE_ENTER\n", inputline));
           return (ch);




reply via email to

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