nano

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

commit 2a4d338d971900b245c616377c5e7919ff366e7f
parent 9c202198a3c3c33533674a2d6a20ff44e58f7573
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed,  2 Oct 2019 15:07:04 +0200

tweaks: reshuffle a fragment, to group some toggles together

Diffstat:
Msrc/files.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -1115,6 +1115,11 @@ void do_insertfile(void) execute = !execute; continue; } + if (func == flip_pipe) { + add_or_remove_pipe_symbol_from_answer(); + given = mallocstrcpy(given, answer); + continue; + } #endif #ifdef ENABLE_BROWSER if (func == to_files_void) { @@ -1129,13 +1134,6 @@ void do_insertfile(void) response = 0; } #endif -#ifndef NANO_TINY - if (func == flip_pipe) { - add_or_remove_pipe_symbol_from_answer(); - given = mallocstrcpy(given, answer); - continue; - } -#endif /* If we don't have a file yet, go back to the prompt. */ if (response != 0 && (!ISSET(MULTIBUFFER) || response != -2)) continue;