aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar 0xACE <0xaced@gmail.com>2019-07-16 05:02:45 +0200
committerGravatar 0xACE <0xaced@gmail.com>2019-07-16 05:02:45 +0200
commitef32cf7177e6956930edf0a185e83d4de1e34702 (patch)
treec930c41d2dc01c8db581dbf906ed3982f984a17d
parent3f33f0afb9f61365268462e99466ded1180d9bd9 (diff)
downloadnnn-ef32cf7177e6956930edf0a185e83d4de1e34702.tar.gz
set rl_change_environment in readline gt v6.3
Looked up GNU readline library's repo and looked for the first occurance of rl_change_environment.
-rw-r--r--src/nnn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index e3e3b35..9cd0910 100644
--- 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__