nano

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

commit 8075e454a9f717dc60eb55c0b0afc24d8be3d81d
parent 93b1c1bea6dd51804414650f33d37c26c9d17c35
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 17 May 2017 10:38:36 +0200

history: don't save the cursor position for temporary help files

It's useless, because the position doesn't get restored, and it
cannot be restored because the name is different every time.

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

diff --git a/src/files.c b/src/files.c @@ -2994,7 +2994,7 @@ void update_poshistory(char *filename, ssize_t lineno, ssize_t xpos) poshiststruct *posptr, *theone, *posprev = NULL; char *fullpath = get_full_path(filename); - if (fullpath == NULL || fullpath[strlen(fullpath) - 1] == '/') { + if (fullpath == NULL || fullpath[strlen(fullpath) - 1] == '/' || inhelp) { free(fullpath); return; }