]> Sergey Matveev's repositories - nnn.git/commitdiff
Ignore link assuming stdscr is NULL
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 1 Feb 2020 13:16:56 +0000 (18:46 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 1 Feb 2020 13:16:56 +0000 (18:46 +0530)
src/nnn.c

index d3c66b642e9ef941ac32b396d0b320a2d7530bf2..a98237beb8ca3cb9a3cb49d43463fdec12de6db7 100644 (file)
--- 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);