about summary refs log tree commit diff stats
path: root/src/LYForms.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1997-11-17 14:36:49 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1997-11-17 14:36:49 -0500
commite47cfd5646f55de9688ff42df3055fd9c09b503f (patch)
treeaab6f3c275e0f2ef58110654e4d87e5bc6676130 /src/LYForms.c
parentb63d287c6f3e67f8574ca2155c661288bc7dcd05 (diff)
downloadlynx-snapshots-e47cfd5646f55de9688ff42df3055fd9c09b503f.tar.gz
snapshot of project "lynx", label v2-7-1ac_0-95
Diffstat (limited to 'src/LYForms.c')
-rw-r--r--src/LYForms.c30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/LYForms.c b/src/LYForms.c
index d9dee701..df0b3b1c 100644
--- a/src/LYForms.c
+++ b/src/LYForms.c
@@ -119,14 +119,14 @@ PUBLIC int change_form_link ARGS6(
 		form->value_cs = opt_ptr->value_cs;
 	    }
 #if defined(FANCY_CURSES) || defined(USE_SLANG)
-            if (!enable_scrollback)
+	    if (!enable_scrollback)
 #if defined(VMS) && !defined(USE_SLANG)
-                if (form->num_value == OrigNumValue)
-                    c = DO_NOTHING;
-                else
+		if (form->num_value == OrigNumValue)
+		    c = DO_NOTHING;
+		else
 #endif /* VMS && !USE_SLANG*/
 		c = 23;	 /* CTRL-W refresh without clearok */
-            else
+	    else
 #endif /* FANCY_CURSES || USE_SLANG */
                 c = 12;  /* CTRL-L for repaint */
             break;
@@ -358,6 +358,12 @@ again:
 	action = EditBinding(ch);
 	if (action == LYE_ENTER)
 	    break;
+	if (action == LYE_LINKN) {
+	    if ((ch = LYReverseKeymap(LYK_F_LINK_NUM)) <= 0) {
+		ch = DO_NOTHING;
+	    }
+	    break;
+	}
 	if (action == LYE_AIX &&
 	    (HTCJK == NOCJK && LYlowest_eightbit[current_char_set] > 0x97))
 	    break;
@@ -369,7 +375,7 @@ again:
 	    return(DO_NOTHING);
 	}
 	if (keymap[ch + 1] == LYK_REFRESH)
-	    goto breakfor;
+	    break;
 	switch (ch) {
 	    case DNARROW:
 	    case UPARROW:
@@ -749,17 +755,7 @@ redraw:
 #ifdef VMS
     VMSbox(form_window, (bottom - top), (width + 4));
 #else
-    {
-	int boxvert, boxhori;
-	UCSetBoxChars(current_char_set, &boxvert, &boxhori, BOXVERT, BOXHORI);
-#ifdef CSS
-	wcurses_css(form_window, "frame", ABS_ON);
-	box(form_window, boxvert, boxhori);
-	wcurses_css(form_window, "frame", ABS_OFF);
-#else
-	box(form_window, boxvert, boxhori);
-#endif
-    }
+    LYbox(form_window, TRUE);
 #endif /* VMS */
     wrefresh(form_window);
 #endif /* USE_SLANG */