summaryrefslogtreecommitdiffstats
path: root/contrib/less/main.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-23 15:28:00 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-23 15:28:00 +0000
commit18998e91970d774f7941d06eecac8f26172e0051 (patch)
treed14950a7f2aba40717a134231142e45ec36e4a15 /contrib/less/main.c
parent2ee5e24fd124a16c12d49ef8363a6050d276783f (diff)
downloadFreeBSD-src-18998e91970d774f7941d06eecac8f26172e0051.zip
FreeBSD-src-18998e91970d774f7941d06eecac8f26172e0051.tar.gz
In more(1) mode, restore the historical behavior where curses init
and deinit characters are not delivered. Instead of hacking screen.c, we set no_init to implement the behavior. Reported by: mnag Approved by: re (hrs)
Diffstat (limited to 'contrib/less/main.c')
-rw-r--r--contrib/less/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/less/main.c b/contrib/less/main.c
index 84b58b9..5edcfd8 100644
--- a/contrib/less/main.c
+++ b/contrib/less/main.c
@@ -59,6 +59,7 @@ static char consoleTitle[256];
extern int missing_cap;
extern int know_dumb;
extern int quit_if_one_screen;
+extern int no_init;
extern int pr_type;
@@ -165,7 +166,7 @@ main(argc, argv)
}
if (less_is_more && get_quit_at_eof())
- quit_if_one_screen = TRUE;
+ no_init = quit_if_one_screen = TRUE;
#if EDITOR
editor = lgetenv("VISUAL");
OpenPOWER on IntegriCloud