mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +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
|
let s:complete_num = 0
|
||||||
function! s:complete(base,num) abort
|
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 .'[^\ .]*'")
|
let rsl = filter(copy(s:chatting_commands), "v:val =~# a:base .'[^\ .]*'")
|
||||||
if len(rsl) > 0
|
if len(rsl) > 0
|
||||||
return rsl[a:num % len(rsl)] . ' '
|
return rsl[a:num % len(rsl)] . ' '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user