From 9ec2fb44b0e35d200368d4c9bd1fe461bd111d8e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 5 Oct 2015 23:27:52 +0200 Subject: [PATCH] smart_auto_mappings: look for `from` only at the start of a line Fixes https://github.com/davidhalter/jedi-vim/issues/469. Closes https://github.com/davidhalter/jedi-vim/pull/470. --- autoload/jedi.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index 9ec6566..dd20d51 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -451,7 +451,7 @@ endfunction function! jedi#smart_auto_mappings() " Auto put import statement after from module.name and complete - if search('\import \\\=jedi#complete_opened(1)\" endif