nano

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

commit ffff6649185319c6d54aa8da25966e8bdac0c303
parent bf984ecb9be286b81a3b2b2fb292f941357439d7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 10 Mar 2023 15:07:24 +0100

tweaks: shrink the set of characters recognized as line-column separator

This slightly reduces the chance that a filename is accidentally parsed
as containing both a line and a column number at its end.

Diffstat:
Msrc/utils.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils.c b/src/utils.c @@ -137,7 +137,7 @@ bool parse_line_column(const char *str, ssize_t *line, ssize_t *column) while (*str == ' ') str++; - comma = strpbrk(str, "m,. /;:"); + comma = strpbrk(str, ",.:"); if (comma == NULL) return parse_num(str, line);