summaryrefslogtreecommitdiffstats
path: root/contrib/less/command.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2012-07-24 01:09:11 +0000
committerdelphij <delphij@FreeBSD.org>2012-07-24 01:09:11 +0000
commite39250a384a3ca30e8cb4cfa39a696fa01008590 (patch)
treef62589b704975274e070eea934ccb4e46d830ae3 /contrib/less/command.c
parent142df5fc8eb25ab65ff82ee819ffb79841bcba18 (diff)
downloadFreeBSD-src-e39250a384a3ca30e8cb4cfa39a696fa01008590.zip
FreeBSD-src-e39250a384a3ca30e8cb4cfa39a696fa01008590.tar.gz
MFV: less v451.
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 de8f52a..5cbab00 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);
}
OpenPOWER on IntegriCloud