File tree 1 file changed +5
-4
lines changed
autoload/vimshell/complete
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -220,11 +220,12 @@ function! vimshell#complete#helper#buffers(cur_keyword_str)"{{{
220
220
let l: bufnumber = 1
221
221
while l: bufnumber <= bufnr (' $' )
222
222
if buflisted (l: bufnumber ) && vimshell#head_match (bufname (l: bufnumber ), a: cur_keyword_str )
223
- let l: bufname = bufname (l: bufnumber )
224
- let l: dict = { ' word' : keyword , ' menu' : ' buffer' , ' icase' : 1 }
223
+ let l: keyword = bufname (l: bufnumber )
224
+ let l: dict = { ' word' : l: keyword , ' menu' : ' buffer' , ' icase' : 1 }
225
225
226
- let l: dict .abbr = len (keyword ) > g: VimShell_MaxKeywordWidth ?
227
- \v imshell#trunk_string (keyword , g: VimShell_MaxKeywordWidth ) : keyword
226
+ let l: dict .abbr = len (l: keyword ) > g: VimShell_MaxKeywordWidth ?
227
+ \v imshell#trunk_string (l: keyword , g: VimShell_MaxKeywordWidth ) : l: keyword
228
+ call add (l: ret , l: dict )
228
229
endif
229
230
230
231
let l: bufnumber += 1
You can’t perform that action at this time.
0 commit comments