From d6ba879171c873a4ed3cbf1b5c6383f463c3e379 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 18 Dec 2019 17:19:04 +0100 Subject: [PATCH] wrapping: a line that starts with a TAB always starts a new paragraph When autoindent is OFF, that is. This patch is provided to test whether this change is enough to get the old Pico-justifying behavior back when tabs are used for indentation. --- src/text.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/text.c b/src/text.c index 42efdbbc..87fd1587 100644 --- a/src/text.c +++ b/src/text.c @@ -1740,6 +1740,10 @@ bool begpar(const linestruct *const line, int depth) if (line->data[quote_len + indent_len] == '\0') return FALSE; + /* If this line starts with a TAB character, it must be a BOP. */ + if (line->data[0] == '\t' && !ISSET(AUTOINDENT)) + return TRUE; + /* If the quote part of the preceding line differs, this is a BOP. */ if (quote_len != quote_length(line->prev->data) || strncmp(line->data, line->prev->data, quote_len) != 0) -- 2.24.1