about summary refs log tree commit diff stats
path: root/src/LYForms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYForms.c')
-rw-r--r--src/LYForms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LYForms.c b/src/LYForms.c
index f93638c3..f15754a8 100644
--- a/src/LYForms.c
+++ b/src/LYForms.c
@@ -387,8 +387,8 @@ static int form_getstr(int cur,
      * Get the initial position of the cursor.
      */
     LYGetYX(startline, startcol);
-    if ((startcol + form->size) > (LYcols - 1))
-	far_col = (LYcols - 1);
+    if ((startcol + form->size) > LYcolLimit)
+	far_col = LYcolLimit;
     else
 	far_col = (startcol + form->size);