summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>2000-05-12 03:53:38 +0000
committerhoek <hoek@FreeBSD.org>2000-05-12 03:53:38 +0000
commit229d753306a10216cfb599cbb01db9b93721ffe2 (patch)
tree84f3840447b43d3ba6626eae9861db8ae1115ee8 /usr.bin
parentb0b1d1568651e4f571bf4dc44c7a83bde03ef33b (diff)
downloadFreeBSD-src-229d753306a10216cfb599cbb01db9b93721ffe2.zip
FreeBSD-src-229d753306a10216cfb599cbb01db9b93721ffe2.tar.gz
Fix an uncommon bug that would cause us to stop accepting input if the
user entered a command that filled exactly the remaining screen width.
Diffstat (limited to 'usr.bin')
-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 646ffe6..cf784fe 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;
}
OpenPOWER on IntegriCloud