]> Sergey Matveev's repositories - nnn.git/commitdiff
set rl_change_environment in readline gt v6.3
author0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 03:02:45 +0000 (05:02 +0200)
committer0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 03:02:45 +0000 (05:02 +0200)
Looked up GNU readline library's repo and looked
for the first occurance of rl_change_environment.

src/nnn.c

index e3e3b35c3b87c89daff82859c0b548f6d34c5dac..9cd0910a4e695fe45ec7128a079c747c77d14efe 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4783,7 +4783,9 @@ int main(int argc, char *argv[])
        setlocale(LC_ALL, "");
 
 #ifndef NORL
+#if RL_READLINE_VERSION >= 0x0603
        rl_change_environment = 0;
+#endif
        /* Bind TAB to cycling */
        rl_variable_bind("completion-ignore-case", "on");
 #ifdef __linux__