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:
parent
739d59780d
commit
5aba3f35d6
@ -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)] . ' '
|
||||
|
Loading…
Reference in New Issue
Block a user