2007-06-26 10:09:21 +00:00
|
|
|
--- less-406/screen.c.pom 2007-06-17 18:56:04.000000000 +0200
|
|
|
|
+++ less-406/screen.c 2007-06-26 11:10:56.000000000 +0200
|
2005-11-07 09:45:13 +00:00
|
|
|
@@ -233,6 +233,7 @@ extern int wscroll;
|
|
|
|
extern int screen_trashed;
|
|
|
|
extern int tty;
|
|
|
|
extern int top_scroll;
|
|
|
|
+extern int quit_if_one_screen;
|
2007-06-26 10:09:21 +00:00
|
|
|
extern int oldbot;
|
2005-11-07 09:45:13 +00:00
|
|
|
#if HILITE_SEARCH
|
|
|
|
extern int hilite_search;
|
2007-06-26 10:09:21 +00:00
|
|
|
@@ -1573,7 +1574,7 @@ deinit()
|
2005-10-21 14:42:56 +00:00
|
|
|
#if !MSDOS_COMPILER
|
|
|
|
if (!no_keypad)
|
|
|
|
tputs(sc_e_keypad, sc_height, putchr);
|
|
|
|
- if (!no_init)
|
2005-11-07 09:45:13 +00:00
|
|
|
+ if (!no_init && !quit_if_one_screen)
|
|
|
|
tputs(sc_deinit, sc_height, putchr);
|
2005-10-21 14:42:56 +00:00
|
|
|
#else
|
|
|
|
/* Restore system colors. */
|