Skip to content

Commit f4f473c

Browse files
committed
bugfix
1 parent 6825794 commit f4f473c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

autoload/easycomplete/pum.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,11 @@ function! s:OpenPum(startcol, lines)
221221
call nvim_win_set_cursor(s:pum_window, [1, 0])
222222
call s:RenderScrollBar()
223223
call s:RenderScrollThumb()
224-
noa setl textwidth=0
225-
noa setl completeopt=menu
224+
" 缓解在 cmdline 中匹配查找时造成Search高亮的抖动
225+
if !(exists("g:easycomplete_cmdline_typing") && g:easycomplete_cmdline_typing == 1)
226+
noa setl textwidth=0
227+
noa setl completeopt=menu
228+
endif
226229
if g:easycomplete_ghost_text &&
227230
\ !(exists("g:easycomplete_cmdline_typing") && g:easycomplete_cmdline_typing == 1)
228231
noa setlocal lazyredraw

0 commit comments

Comments
 (0)