]> Sergey Matveev's repositories - nnn.git/commitdiff
documentation on rl_change_environment
author0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 03:09:11 +0000 (05:09 +0200)
committer0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 03:09:11 +0000 (05:09 +0200)
Basically that line lets nnn retain the WINCH signal for itself.

src/nnn.c

index 9cd0910a4e695fe45ec7128a079c747c77d14efe..ecb94722384728a6b03fd97f3d9c3c49816475fe 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4784,6 +4784,7 @@ int main(int argc, char *argv[])
 
 #ifndef NORL
 #if RL_READLINE_VERSION >= 0x0603
+       /* readline would overwrite the WINCH signal hook */
        rl_change_environment = 0;
 #endif
        /* Bind TAB to cycling */