nano

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

commit 20692e0c290de8c89ec3ac8f2df98984a8234605
parent 206b4e2a7eb6edf9f80b92f983f8d37a3d0d70ca
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 11 Feb 2024 15:48:15 +0100

browser: restore typing position at prompt after "^R name ^T ^F ^V ^C"

When going back from the browser to a file prompt, restore the typing
position also after a 'to_first_file' (^Y) and 'to_last_file (^V).

The cursor misplacement existed since version 5.9, commit 508301a2.

Diffstat:
Msrc/prompt.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -604,6 +604,9 @@ int do_prompt(int menu, const char *provided, linestruct **history_list, /* Restore a possible previous prompt and maybe the typing position. */ prompt = saved_prompt; if (function == do_cancel || function == do_enter || +#ifdef ENABLE_BROWSER + function == to_first_file || function == to_last_file || +#endif function == to_first_line || function == to_last_line) typing_x = was_typing_x;