From 2125c974cbfd992ca46bf9ee650820b6c6862dc1 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 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 4f759db0..ef2d8e74 100644 --- a/src/text.c +++ b/src/text.c @@ -1741,6 +1741,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') + 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