From b45f8b5a8e64685a637aa38d28f83b961600d101 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 30 Mar 2019 10:19:48 +0100 Subject: [PATCH] botch: recognize # and / as whitespace, so they will work with autoindent When using --autoindent, pressing at the end of a line that starts with any combination of whitespace, #, and /, will precede the next line with that same combination. I don't know what side effects this has, so use at your own risk. --- src/chars.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chars.c b/src/chars.c index 07620872..354cd9fd 100644 --- a/src/chars.c +++ b/src/chars.c @@ -97,6 +97,9 @@ bool is_alnum_mbchar(const char *c) /* This function is equivalent to isblank() for multibyte characters. */ bool is_blank_mbchar(const char *c) { + if ((unsigned char)*c == '#' || (unsigned char)*c == '/' ) + return TRUE; + #ifdef ENABLE_UTF8 if (use_utf8) { wchar_t wc; -- 2.20.1