Skip to content

Commit 04e606b

Browse files
committed
for #386
1 parent ee90acf commit 04e606b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/easycomplete.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ function! s:CompleteTypingMatch(...)
330330

331331
" 如果正常匹配为空,但还存在旧的 TN 占位符,则物理匹配旧的占位符
332332
if len(filtered_menu) == 0 && len(tn_result) != 0
333+
if &filetype == "vim"
334+
let word = split(word, "#")[-1]
335+
endif
333336
let tn_result = easycomplete#util#CompleteMenuFilter(tn_result, word, 500)
334337
if len(tn_result) == 0
335338
if has('nvim')

0 commit comments

Comments
 (0)