aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar 0xACE <0xaced@gmail.com>2019-07-16 04:25:01 +0200
committerGravatar 0xACE <0xaced@gmail.com>2019-07-16 04:37:38 +0200
commit3f33f0afb9f61365268462e99466ded1180d9bd9 (patch)
tree9c3c4f50d8f4bbb3bda72d64b505afc9f30fa731 /src
parentfee2c339cc635b826cc83e79a4ecd7aec24e4244 (diff)
downloadnnn-3f33f0afb9f61365268462e99466ded1180d9bd9.tar.gz
stop readline from overwriting LINES
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.
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f37551f..e3e3b35 100644
--- 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__