summaryrefslogtreecommitdiff
path: root/miscutils/less.c
diff options
context:
space:
mode:
authorDenys Vlasenko2017-09-14 09:42:40 +0200
committerDenys Vlasenko2017-09-14 09:42:40 +0200
commit363fb5ec4091120003b3f204996e7ff0aa354e58 (patch)
treee82b1163cd37f2fec8fb5f32c7ef9988bfbaed31 /miscutils/less.c
parentd72e804e6db1bd6eb2417961004b4fe33aba9384 (diff)
downloadbusybox-363fb5ec4091120003b3f204996e7ff0aa354e58.zip
busybox-363fb5ec4091120003b3f204996e7ff0aa354e58.tar.gz
hexedit: restore screen on exit
function old new delta hexedit_main 998 1082 +84 restore_term - 29 +29 remap 168 173 +5 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 118/0) Total: 118 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/less.c')
-rw-r--r--miscutils/less.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index 241f7f8..f869a9e 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -1103,7 +1103,7 @@ static int64_t getch_nowait(void)
goto again;
}
/* EOF/error (ssh session got killed etc) */
- less_exit(0);
+ less_exit(EXIT_SUCCESS);
}
set_tty_cooked();
return key64;