summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-30 13:27:35 -0400
committerJune McEnroe <june@causal.agency>2020-03-30 13:27:35 -0400
commit407eaf9dbf8ed304cded894cbfcc6a563bc9f5bf (patch)
tree9ef2b290df419cf71302105e354c5153e0689f22
parentAdd /o alias for /open (diff)
downloadcatgirl-407eaf9dbf8ed304cded894cbfcc6a563bc9f5bf.tar.gz
catgirl-407eaf9dbf8ed304cded894cbfcc6a563bc9f5bf.zip
Tab complete from last iswspace
Diffstat (limited to '')
-rw-r--r--edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.c b/edit.c
index 720d7fd..5aa3de4 100644
--- a/edit.c
+++ b/edit.c
@@ -81,7 +81,7 @@ static struct {
 static void tabComplete(uint id) {
 	if (!tab.len) {
 		tab.pos = pos;
-		while (tab.pos && buf[tab.pos - 1] != L' ') tab.pos--;
+		while (tab.pos && !iswspace(buf[tab.pos - 1])) tab.pos--;
 		if (tab.pos == pos) return;
 		tab.pre = pos - tab.pos;
 		tab.len = tab.pre;
t LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroeand offer them to clientsJune McEnroe 2019-11-09Parse capabilitiesJune McEnroe 2019-11-09Avoid the reserved _A names with BIT macroJune McEnroe 2019-11-09Define macro for bit flag enumsJune McEnroe 2019-11-08Check that password is hashedJune McEnroe 2019-11-08Avoid calling getopt_long again after it returns -1June McEnroe 2019-11-08Only change AWAY status for registered clientsJune McEnroe 2019-11-07Just write the example normallyJune McEnroe 2019-11-07Include path in readlinkat errorJune McEnroe 2019-11-07Call clientConsume before clientRecvJune McEnroe 2019-11-06Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe