nano

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

commit e67d1bfeb8ac1ccefb2ded1a85c3058ad3fd20f6
parent e2f444cfdf0568e5fe5099e3d221c1f20319f566
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  8 Apr 2022 11:35:44 +0200

build: fix compilation when configured with --disable-color

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

diff --git a/src/files.c b/src/files.c @@ -848,8 +848,8 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable) /* If we inserted less than a screenful, don't center the cursor. */ if (undoable && less_than_a_screenful(was_lineno, was_leftedge)) { focusing = FALSE; - perturbed = TRUE; #ifdef ENABLE_COLOR + perturbed = TRUE; } else if (undoable) { recook = TRUE; #endif