nano

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

commit 551a971e16a9694616542e3bfa14b81337549c90
parent c2b6eb01cdeb053474db15bc767387ea8804903b
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  3 Aug 2020 11:36:35 +0200

tweaks: reshuffle four lines, for esthetics

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

diff --git a/src/text.c b/src/text.c @@ -2419,8 +2419,8 @@ void do_int_speller(const char *tempfile_name) /* When some child process was not forked successfully... */ if (pid_spell < 0 || pid_sort < 0 || pid_uniq < 0) { - close(uniq_fd[0]); statusline(ALERT, _("Could not fork: %s"), strerror(errno)); + close(uniq_fd[0]); return; } @@ -2428,8 +2428,8 @@ void do_int_speller(const char *tempfile_name) pipesize = fpathconf(uniq_fd[0], _PC_PIPE_BUF); if (pipesize < 1) { - close(uniq_fd[0]); statusline(ALERT, _("Could not get size of pipe buffer")); + close(uniq_fd[0]); return; } @@ -2639,8 +2639,8 @@ void do_linter(void) /* If the child process was not forked successfully... */ if (pid_lint < 0) { - close(lint_fd[0]); statusline(ALERT, _("Could not fork: %s"), strerror(errno)); + close(lint_fd[0]); return; } @@ -2648,8 +2648,8 @@ void do_linter(void) pipesize = fpathconf(lint_fd[0], _PC_PIPE_BUF); if (pipesize < 1) { - close(lint_fd[0]); statusline(ALERT, _("Could not get size of pipe buffer")); + close(lint_fd[0]); return; }