aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/more
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>2000-05-12 03:53:38 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>2000-05-12 03:53:38 +0000
commit7914f697065ec5d0f2ba90ceab0546177150773c (patch)
tree21fdfba9c76d10332586118a57becf104001ffe2 /usr.bin/more
parent691009407a27b073ba458b48c94820dfb738bcf9 (diff)
Notes
Diffstat (limited to 'usr.bin/more')
-rw-r--r--usr.bin/more/command.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/more/command.c b/usr.bin/more/command.c
index 646ffe6e264e..cf784fe562a9 100644
--- a/usr.bin/more/command.c
+++ b/usr.bin/more/command.c
@@ -394,6 +394,16 @@ prompt()
}
so_exit();
}
+
+ /*
+ * XXX This isn't correct, but until we get around to reworking
+ * the whole prompt stuff the way we want it to be, this hack
+ * is necessary to prevent input from being blocked if getinput()
+ * is called and the user enters an input that fills the cmd
+ * buffer (or reaches the far rightside end of the screen).
+ */
+ cmd_col = 0;
+
return 1;
}