nano

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

commit 1270657602a9061e586e58ee5f6521a8c4910e8b
parent 6c80b976941bd9f08d52faa1dab9ee4a1e519151
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 20 May 2025 16:20:48 +0200

tweaks: elide the unneeded use of an auxiliary function

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

diff --git a/src/history.c b/src/history.c @@ -565,7 +565,8 @@ void update_poshistory(void) /* Record the last cursor position and any anchors. */ item->linenumber = openfile->current->lineno; item->columnnumber = xplustabs() + 1; - item->anchors = free_and_assign(item->anchors, stringify_anchors()); + free(item->anchors); + item->anchors = stringify_anchors(); free(fullpath);