From 0d888b88d0d8e4853e0d23e00b3183a7b60ab877 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 17 Jun 2021 18:43:26 -0400 Subject: Match windows by substring in /window This could just iterate over idNames instead, but using complete means more recently used windows will match first. --- chat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 8c99cf5..3b6ac6a 100644 --- a/chat.h +++ b/chat.h @@ -360,6 +360,7 @@ char *editBuffer(size_t *pos); void editCompleteAdd(void); const char *complete(uint id, const char *prefix); +const char *completeSubstr(uint id, const char *substr); void completeAccept(void); void completeReject(void); void completeAdd(uint id, const char *str, enum Color color); -- cgit 1.4.1