Skip to content

Commit 3dfe547

Browse files
committed
jedi#smart_auto_mappings: handle disabled completions with no timers
1 parent 09b5268 commit 3dfe547

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/jedi.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,9 +637,10 @@ function! jedi#smart_auto_mappings(...) abort
637637
let s:import_timer = [
638638
\ timer_start(g:jedi#smart_auto_mappings_delay, function('jedi#smart_auto_mappings')),
639639
\ b:changedtick, getpos('.')]
640-
else
641-
" Enter characters and start completion.
640+
elseif g:jedi#completions_enabled
642641
return "\<space>import \<C-r>=jedi#complete_string(1)\<CR>"
642+
else
643+
return "\<space>import "
643644
endif
644645
endif
645646
return "\<space>"

0 commit comments

Comments
 (0)