diff --git a/bundle/vim-chat/autoload/chat/windows.vim b/bundle/vim-chat/autoload/chat/windows.vim index ddfc74545..e7248d30a 100644 --- a/bundle/vim-chat/autoload/chat/windows.vim +++ b/bundle/vim-chat/autoload/chat/windows.vim @@ -314,7 +314,7 @@ function! s:complete(base,num) abort return rsl[a:num % len(rsl)] endif elseif a:base =~# '^/set_protocol\s*\w*$' - let rsl = filter(copy(s:all_protocols), "v:val =~# matchstr(a:base, '\w*$') .'[^\ .]*'") + let rsl = filter(copy(s:all_protocols), "v:val =~# matchstr(a:base, '\\w*$') .'[^\ .]*'") if len(rsl) > 0 return matchstr(a:base, '^/set_protocol\s*') . rsl[a:num % len(rsl)] endif @@ -324,7 +324,7 @@ function! s:complete(base,num) abort let channels = chat#{s:protocol}#get_channels() catch endtry - let rsl = filter(copy(channels), "v:val =~# '^' . matchstr(a:base, '\\w*$')") + let rsl = filter(copy(channels), "v:val =~ '^' . matchstr(a:base, '\\w*$')") if len(rsl) > 0 return matchstr(a:base, '^/set_channel\s*') . rsl[a:num % len(rsl)] endif