nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 073bd3ad6e3dd25a0ea882e76fe2524aea704b6b
parent 4bcc2245603e044c8f064971f56646c28c6c2258
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 18 Aug 2019 10:52:03 +0200

rcfile: properly handle an empty syntax before an 'include' statement

So that in the error message the correct filename gets shown
instead of the name of the (first) include file.

Reported-by: Brand Huntsman <alpha@qzx.com>

Diffstat:
Msrc/rcfile.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -631,6 +631,8 @@ void parse_includes(char *ptr) glob_t files; int result; + check_for_nonempty_syntax(); + pattern = ptr; if (*pattern == '"') pattern++;