Skip to content

Commit aa55389

Browse files
committed
jedi#smart_auto_mappings: handle disabled completions with no timers
1 parent 01cea93 commit aa55389

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
@@ -602,9 +602,10 @@ function! jedi#smart_auto_mappings(...) abort
602602
let s:import_timer = [
603603
\ timer_start(g:jedi#smart_auto_mappings_delay, function('jedi#smart_auto_mappings')),
604604
\ b:changedtick, getpos('.')]
605-
else
606-
" Enter characters and start completion.
605+
elseif g:jedi#completions_enabled
607606
return "\<space>import \<C-r>=jedi#complete_string(1)\<CR>"
607+
else
608+
return "\<space>import "
608609
endif
609610
endif
610611
return "\<space>"

0 commit comments

Comments
 (0)