Skip to content

Commit

Permalink
jedi#smart_auto_mappings: handle disabled completions with no timers
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jul 15, 2018
1 parent 01cea93 commit aa55389
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/jedi.vim
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,10 @@ function! jedi#smart_auto_mappings(...) abort
let s:import_timer = [
\ timer_start(g:jedi#smart_auto_mappings_delay, function('jedi#smart_auto_mappings')),
\ b:changedtick, getpos('.')]
else
" Enter characters and start completion.
elseif g:jedi#completions_enabled
return "\<space>import \<C-r>=jedi#complete_string(1)\<CR>"
else
return "\<space>import "
endif
endif
return "\<space>"
Expand Down

0 comments on commit aa55389

Please sign in to comment.