Introduction
Introduction Statistics Contact Development Disclaimer Help
change it so titles don't require the exact amount bytes/columns of - and = - s…
git clone git://git.codemadness.org/smu
Log
Files
Refs
README
LICENSE
---
commit d58759a6f00ab596d7238a22b07395e2d186ec19
parent 0c366f57600669cba8cff413d080f58304073a3f
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 11 May 2021 17:59:27 +0200
change it so titles don't require the exact amount bytes/columns of - and =
This would be a bit unintuitive too when using unicode or multiwidth/column
characters in titles.
Diffstat:
M smu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/smu.c b/smu.c
@@ -605,7 +605,7 @@ dounderline(const char *begin, const char *end, int newbloc…
for (i = 0; i < LENGTH(underline); i++) {
for (j = 0; p + j != end && p[j] != '\n' && p[j] == underline[…
;
- if (j >= l) {
+ if (j > 0) {
fputs(underline[i].before, stdout);
if (underline[i].process)
process(begin, begin + l, 0);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.