Skip to content

Commit

Permalink
fix: bad ruler substitution
Browse files Browse the repository at this point in the history
Closes: Gottox#22
  • Loading branch information
N-R-K committed Jun 20, 2022
1 parent e62f238 commit 35a83aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smu.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ dolineprefix(const char *begin, const char *end, int newblock) {
fputs(lineprefix[i].before, stdout);
if(lineprefix[i].search[l-1] == '\n') {
fputc('\n', stdout);
return l - 1;
return l - (p[l] == '\n');
}
if(!(buffer = malloc(BUFSIZ)))
eprint("Malloc failed.");
Expand Down

0 comments on commit 35a83aa

Please sign in to comment.