nano

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

commit 450bfa7a757424aab18df7568931f322e733671a
parent a52ac1375af35c5cf9eed154ed21b4bd9d8aaebf
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 22 Apr 2022 11:44:36 +0200

build: fix compilation for --enable-{tiny,nanorc,color}

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

diff --git a/src/text.c b/src/text.c @@ -2054,8 +2054,8 @@ bool replace_buffer(const char *filename, undo_type action, const char *operatio add_undo(COUPLE_BEGIN, operation); #endif - /* When nothing is marked, start at the top of the buffer. */ - if (!openfile->mark) { + /* When replacing the whole buffer, start cutting at the top. */ + if (action == CUT_TO_EOF) { openfile->current = openfile->filetop; openfile->current_x = 0; }