less/less-392-Foption.patch
Jindrich Novy 2d88a3d74c - update to less-393
- groom Foption patch a bit
- remove obsolete ncursesw and utf8detect patches
2005-11-07 09:45:13 +00:00

20 lines
564 B
Diff

--- 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()
#if !MSDOS_COMPILER
if (!no_keypad)
tputs(sc_e_keypad, sc_height, putchr);
- if (!no_init)
+ if (!no_init && !quit_if_one_screen)
tputs(sc_deinit, sc_height, putchr);
#else
/* Restore system colors. */