summaryrefslogtreecommitdiff
path: root/contrib/less/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/command.c')
-rw-r--r--contrib/less/command.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/contrib/less/command.c b/contrib/less/command.c
index de8f52a59379..5cbab00b4226 100644
--- a/contrib/less/command.c
+++ b/contrib/less/command.c
@@ -1,12 +1,12 @@
/* $FreeBSD$ */
-/*
- * Copyright (C) 1984-2012 Mark Nudelman
- *
- * You may distribute under the terms of either the GNU General Public
- * License or the Less License, as specified in the README file.
- *
- * For more information, see the README file.
- */
+/*
+ * Copyright (C) 1984-2012 Mark Nudelman
+ *
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Less License, as specified in the README file.
+ *
+ * For more information, see the README file.
+ */
/*
@@ -989,13 +989,15 @@ forw_loop(until_hilite)
forward(1, 0, 0);
}
ignore_eoi = 0;
+ ch_set_eof();
/*
* This gets us back in "F mode" after processing
* a non-abort signal (e.g. window-change).
*/
if (sigs && !ABORT_SIGS())
- return (A_F_FOREVER);
+ return (until_hilite ? A_F_UNTIL_HILITE : A_F_FOREVER);
+
return (A_NOACTION);
}