aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mischievous Meerkat <engineerarun@gmail.com>2019-07-16 08:43:17 +0530
committerGravatar GitHub <noreply@github.com>2019-07-16 08:43:17 +0530
commite3c99de23a1a5c8e06a01f46458d168dbd22dd2f (patch)
tree25070ebab8b884b89f1208bf4292e2a2c40f8095
parentfee2c339cc635b826cc83e79a4ecd7aec24e4244 (diff)
parent02fd4c4d8c927b574eadc3dee16ef8528e6c8297 (diff)
downloadnnn-e3c99de23a1a5c8e06a01f46458d168dbd22dd2f.tar.gz
Merge pull request #309 from 0xACE/readline-resize
stop readline from overwriting LINES
-rw-r--r--src/nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f37551f..ecb9472 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4783,6 +4783,10 @@ int main(int argc, char *argv[])
setlocale(LC_ALL, "");
#ifndef NORL
+#if RL_READLINE_VERSION >= 0x0603
+ /* readline would overwrite the WINCH signal hook */
+ rl_change_environment = 0;
+#endif
/* Bind TAB to cycling */
rl_variable_bind("completion-ignore-case", "on");
#ifdef __linux__