Skip to content

Commit

Permalink
Merge pull request #4264 from bstaletic/buffer-local-completeopt
Browse files Browse the repository at this point in the history
[READY] Use setlocal for temporary completeopt adjustment
  • Loading branch information
mergify[bot] authored Sep 14, 2024
2 parents 80728a1 + d517711 commit 63ab13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/youcompleteme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ function! s:Complete()
endif
if len( s:completion.completions )
let old_completeopt = &completeopt
set completeopt+=noselect
setlocal completeopt+=noselect
call complete( s:completion.completion_start_column,
\ s:completion.completions )
let &completeopt = old_completeopt
Expand Down

0 comments on commit 63ab13e

Please sign in to comment.