nano

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

commit 2281ec9a31b977cdbc3592a3934d46fc34ef544b
parent cd0917fe10ff7885be54c52595a0f94301205f06
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu,  4 Apr 2019 12:47:20 +0200

tweaks: remove an unneeded check for NULL  [coverity]

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

diff --git a/src/text.c b/src/text.c @@ -703,8 +703,8 @@ void do_redo(void) return; } - /* Get the previous undo item. */ - while (u != NULL && u->next != openfile->current_undo) + /* Find the item before the current one in the undo stack. */ + while (u->next != openfile->current_undo) u = u->next; if (u->type <= REPLACE) {