From 7e54065eb147ba61b5c4b0ca81bd3980a91bf22d Mon Sep 17 00:00:00 2001 From: Thomas Oltmann Date: Fri, 7 Jan 2022 14:40:10 +0100 Subject: Fixed line continuation checks. The checks for line continuation starting on an empty line, ending on an empty line, and ending on EOF were broken because of logic errors in said checks, as well as an accidental negation in is_line_blank(). --- text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text.c') diff --git a/text.c b/text.c index 440ed7d..c7b75b2 100644 --- a/text.c +++ b/text.c @@ -163,5 +163,5 @@ is_line_blank(struct line *line) char *s = line->data; while (isspace(*s)) s++; - return !!*s; + return !*s; } -- cgit v1.2.3-70-g09d2