From 5aba3f35d6d403fa0cb853b1fe41abb84865e102 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 30 Apr 2022 10:45:31 +0800 Subject: [PATCH] fix(chat): fix command completion --- bundle/vim-chat/autoload/chat/windows.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/vim-chat/autoload/chat/windows.vim b/bundle/vim-chat/autoload/chat/windows.vim index a0eb71c92..dcb9baa2a 100644 --- a/bundle/vim-chat/autoload/chat/windows.vim +++ b/bundle/vim-chat/autoload/chat/windows.vim @@ -242,7 +242,7 @@ endfunction let s:complete_num = 0 function! s:complete(base,num) abort - if a:base =~# '^/[a-z]*$' + if a:base =~# '^/[a-z_A-Z]*$' let rsl = filter(copy(s:chatting_commands), "v:val =~# a:base .'[^\ .]*'") if len(rsl) > 0 return rsl[a:num % len(rsl)] . ' '