1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00

fix(chat): fix command completion

This commit is contained in:
wsdjeg 2022-04-30 10:45:31 +08:00
parent 739d59780d
commit 5aba3f35d6

View File

@ -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)] . ' '