summaryrefslogtreecommitdiffstats
path: root/usr.bin/less/command.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-01-12 20:32:01 +0000
committerschwarze <schwarze@openbsd.org>2017-01-12 20:32:01 +0000
commit2da0d38cf7b0870620abc4f591adb9afe3dac7cd (patch)
tree3b098da43ba86b3cd39cdf9f04d5f51c79243d37 /usr.bin/less/command.c
parentExecute XenStore watch callbacks on a dedicated task queue (diff)
downloadwireguard-openbsd-2da0d38cf7b0870620abc4f591adb9afe3dac7cd.tar.xz
wireguard-openbsd-2da0d38cf7b0870620abc4f591adb9afe3dac7cd.zip
Fix the "t" command for the case where we go down by just a few lines:
clear the status before printing content on the last line of the screen. OK millert@ tom@
Diffstat (limited to '')
-rw-r--r--usr.bin/less/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/less/command.c b/usr.bin/less/command.c
index 1904831a713..2447887bcdd 100644
--- a/usr.bin/less/command.c
+++ b/usr.bin/less/command.c
@@ -1463,6 +1463,7 @@ again:
case A_NEXT_TAG:
if (number <= 0)
number = 1;
+ cmd_exec();
tagfile = nexttag((int)number);
if (tagfile == NULL) {
error("No next tag", NULL);