2005-11-07 09:45:13 +00:00
|
|
|
--- less-392/screen.c.Foption 2005-09-17 19:17:02.000000000 +0200
|
|
|
|
+++ less-392/screen.c 2005-10-21 16:25:16.000000000 +0200
|
|
|
|
@@ -233,6 +233,7 @@ extern int wscroll;
|
|
|
|
extern int screen_trashed;
|
|
|
|
extern int tty;
|
|
|
|
extern int top_scroll;
|
|
|
|
+extern int quit_if_one_screen;
|
|
|
|
#if HILITE_SEARCH
|
|
|
|
extern int hilite_search;
|
|
|
|
#endif
|
|
|
|
@@ -1547,7 +1548,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. */
|