Hi,
> size_t nc = 0, nl = 0, nw = 0;
>
> while ((rlen = efgetrune(&c, fp, str))) {
> - nc += (cmode == 'c') ? rlen :
> + nc += (cmode == 'c' || cmode == 0) ? rlen :
> (c != Runeerror) ? 1 : 0;
> if (c == '\n')
>
This patch makes it so that the syntax coloring updates when you give
a document a name for the first time.
editor.c | 19 +--
editor.h | 3 +++
vis.c| 6 ++
3 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/editor.c b/editor.c
index 668062c..0e3e603 100644
According to POSIX, wc should by default print the number of bytes and
not the number of chars
---
wc.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wc.c b/wc.c
index 0b196d8..a1d89d7 100644
--- a/wc.c
+++ b/wc.c
@@ -32,7 +32,7 @@ wc(FILE *fp, const char *str)
siz