nano

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

commit 60d31d2ea6e800e3d29d8b10c0040da56e3ded72
parent b744eec1a908ae9d5785c0c730b9d74b5d06aeda
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 16 Jul 2020 12:41:01 +0200

tweaks: avoid a warning about an unused variable in the tiny version

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

diff --git a/src/text.c b/src/text.c @@ -2182,12 +2182,12 @@ const char *treat(char *tempfile_name, char *theprogram, bool spelling) if (was_at_eol || openfile->current_x > strlen(openfile->current->data)) openfile->current_x = strlen(openfile->current->data); -#ifndef NANO_TINY if (replaced) { +#ifndef NANO_TINY openfile->filetop->has_anchor = FALSE; update_undo(COUPLE_END); - } #endif + } openfile->placewewant = pww_save; adjust_viewport(STATIONARY);