nano

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

commit b408147f485b11625ca34c6e3a7e91c95fedb18d
parent 4930fbbba726e90bd2f080c0484e726415719397
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 28 May 2024 16:31:07 +0200

tweaks: exclude the colon-parsing code from the tiny version

The option --colonparsing is not available in the tiny version,
so there is no need for the code either.

Diffstat:
Msrc/nano.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c @@ -2502,6 +2502,7 @@ int main(int argc, char **argv) #endif { char *filename = argv[optind++]; +#ifndef NANO_TINY struct stat fileinfo; /* If the filename contains a colon and this file does not exist, @@ -2526,7 +2527,7 @@ int main(int argc, char **argv) die(_("Invalid number\n")); } } - +#endif if (!open_buffer(filename, TRUE)) continue; }