don't change colours on blank lines#31
Conversation
|
The variable names are a bit inconsistent now: |
187e8ff to
59ff502
Compare
|
how's this? |
|
LGTM. I think it would be better to switch You could maybe add ( |
|
done |
|
Should if (c == '\n' || c == '\f' || c == '\v') {
[...]
(c != ' ' && c != '\t' && c != '\r'))) {not be if (c == '\n') {
[...]
(c != ' ' && c != '\t' && c != '\r' && c != '\f' && c != '\v'))) {instead? |
|
How about this? #include <cctype>
[...]
else if (g_blankLine && (g_changeBlank || !isspace(c))) { |
|
i was thinking that since \f and \v both do effectively cause a new line, (at least they do on Android Termux, my PC is out of commission,) they should be treated as such, but if you think they should be ignored like the horizontal whitespace we can change it |
|
I think |
|
Throw in some |
optionally do, with -c --change-blank consider lines with only spaces and tabs empty Co-authored-by: Felix C. Stegerman <[email protected]>
|
ok yes. |
|
closing in favour of #33 |
builds on @obfusk's changes. fixes #24