nano

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

commit 308d6e73e36f1d587ab3ef91d252b92405ef7c48
parent 167c93b85ca43da6c52bbc11522ddab5582197e4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun,  7 Nov 2021 15:51:32 +0100

tweaks: normalize whitespace, drop unneeded prototype, condense comment

Diffstat:
Msrc/nano.c | 2+-
Msrc/prototypes.h | 1-
Msrc/text.c | 3+--
3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1097,7 +1097,7 @@ void do_toggle(int flag) } if (ISSET(STATEFLAGS) && (flag == AUTOINDENT || - flag == BREAK_LONG_LINES || flag == SOFTWRAP)) { + flag == BREAK_LONG_LINES || flag == SOFTWRAP)) { if (ISSET(MINIBAR)) return; else diff --git a/src/prototypes.h b/src/prototypes.h @@ -412,7 +412,6 @@ void block_sigwinch(bool blockit); #ifndef NANO_TINY void handle_sigwinch(int signal); void regenerate_screen(void); -void do_toggle(int flag); #endif void disable_kb_interrupt(void); void enable_kb_interrupt(void); diff --git a/src/text.c b/src/text.c @@ -1465,8 +1465,7 @@ bool begpar(const linestruct *const line, int depth) { size_t quot_len, indent_len, prev_dent_len; - /* If this is the very first line of the buffer, it counts as a BOP - * even when it contains no text. */ + /* The very first line counts as a BOP, even when it contains no text. */ if (line->prev == NULL) return TRUE;