]> Sergey Matveev's repositories - nnn.git/commitdiff
stop readline from overwriting LINES
author0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 02:25:01 +0000 (04:25 +0200)
committer0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 02:37:38 +0000 (04:37 +0200)
The problem was that readline would completely block LINES from updating
after prompting the user. I'm not entirely sure why this happened, but
at least this patch fixes the problem.

src/nnn.c

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