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>2013-05-02 11:09:30 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2013-05-02 11:09:30 -0400
commit844a17014bd45706a13ee5318b36a56fbcf6924c (patch)
tree1f6fbe9df293ae7e477671384c5a69a195e15b26 /src/LYForms.c
parent81905f18dc0594e372cf38cfb0e0b71b69849a43 (diff)
downloadlynx-snapshots-844a17014bd45706a13ee5318b36a56fbcf6924c.tar.gz
snapshot of project "lynx", label v2-8-8dev-15c
Diffstat (limited to 'src/LYForms.c')
-rw-r--r--src/LYForms.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/LYForms.c b/src/LYForms.c
index 75492637..19b15a2f 100644
--- a/src/LYForms.c
+++ b/src/LYForms.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYForms.c,v 1.101 2013/01/04 21:50:03 tom Exp $ */
+/* $LynxId: LYForms.c,v 1.102 2013/05/01 09:19:14 tom Exp $ */
 #include <HTUtils.h>
 #include <HTCJK.h>
 #include <HTTP.h>
@@ -387,6 +387,10 @@ static int form_getstr(int cur,
      * Get the initial position of the cursor.
      */
     LYGetYX(startline, startcol);
+    if (startline < 0)
+	startline = 0;
+    if (startcol < 0)
+	startcol = 0;
     if ((startcol + form->size) > LYcolLimit)
 	far_col = LYcolLimit;
     else