aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-01 18:46:56 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-01 18:46:56 +0530
commit4401dbe092d6f70a8f3b4c407655c11658487bc6 (patch)
tree100ebae0bb4891e10d7092e8c52b7df2823ff1d2 /src/nnn.c
parent27943b9efb95453258f9171916978d25a3ee6adc (diff)
downloadnnn-4401dbe092d6f70a8f3b4c407655c11658487bc6.tar.gz
Ignore link assuming stdscr is NULL
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index d3c66b6..a98237b 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2453,7 +2453,7 @@ static char *xreadline(const char *prefill, const char *prompt)
memmove(buf + pos - 1, buf + pos,
(len - pos) * WCHAR_T_WIDTH);
--pos, --len;
- } while (buf[pos-1] != ' ' && buf[pos-1] != '/');
+ } while (buf[pos - 1] != ' ' && buf[pos - 1] != '/'); // NOLINT
continue;
case CONTROL('K'):
printprompt(prompt);