commit e3c99de23a1a5c8e06a01f46458d168dbd22dd2f
parent fee2c339cc635b826cc83e79a4ecd7aec24e4244
Author: Mischievous Meerkat <engineerarun@gmail.com>
Date: Tue, 16 Jul 2019 08:43:17 +0530
Merge pull request #309 from 0xACE/readline-resize
stop readline from overwriting LINES
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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__