nano

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

commit 76b87890d81f7e95c498a5572878ce59fc136b04
parent d0796bde4f0179b65a2c4b07057be5d7f2e95ee9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 17 May 2025 09:25:57 +0200

history: always save the positions of any anchors

Let the saving of anchors not depend on the presence of an anchor
on the first line.  That was a clever mechanism to allow avoiding
the unnecessary saving-of-anchors, but... it was awkward and ugly.

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

diff --git a/src/history.c b/src/history.c @@ -356,7 +356,7 @@ char *stringify_anchors(void) char *string = NULL; char number[24]; - if (!line->has_anchor || asprintf(&string, "%s", "") < 0) + if (asprintf(&string, "%s", "") < 0) return NULL; for (; line != NULL; line = line->next)