diff options
author | Thomas Oltmann <thomas.oltmann.hhg@gmail.com> | 2022-01-07 14:40:10 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-07 14:57:59 +0100 |
commit | 7e54065eb147ba61b5c4b0ca81bd3980a91bf22d (patch) | |
tree | 5e98c4146f61ccc0c4b22581cea6b60421594129 /text.c | |
parent | Use c99 instead of nonportable cc -std=c99 (diff) | |
download | makel-7e54065eb147ba61b5c4b0ca81bd3980a91bf22d.tar.gz makel-7e54065eb147ba61b5c4b0ca81bd3980a91bf22d.tar.bz2 makel-7e54065eb147ba61b5c4b0ca81bd3980a91bf22d.tar.xz |
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().
Diffstat (limited to '')
-rw-r--r-- | text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -163,5 +163,5 @@ is_line_blank(struct line *line) char *s = line->data; while (isspace(*s)) s++; - return !!*s; + return !*s; } |