From 308d6e73e36f1d587ab3ef91d252b92405ef7c48 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 7 Nov 2021 15:51:32 +0100 Subject: [PATCH] tweaks: normalize whitespace, drop unneeded prototype, condense comment --- src/nano.c | 2 +- src/prototypes.h | 1 - src/text.c | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nano.c b/src/nano.c index 51b3bad2..f7d03565 100644 --- 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 index bf99c8ef..59fd0c63 100644 --- 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 index bb5625e8..5a74c195 100644 --- 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;