vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim | 2 +- diff --git a/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim b/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim index b2de8c50a5a82b3b23e7fd4b670124287715e88a428cba9d8d39417624bc5048..5e4ea3dc6800fa89f9eeb141b920dc564dd97bc746d7eeba764c15f586362913 100644 --- a/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim +++ b/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim @@ -64,7 +64,7 @@ if len(lines) == 0 | lines = getqflist() | endif var result: list var m: string for line in lines - if line.text !~ "^ *undefined name" | continue | endif + if line.text !~ "undefined name" | continue | endif m = line.text[strridx(line.text[: -2], "'") + 1 : -2] if len(m) == 0 || !has_key(imports, m) | continue | endif insert(result, imports[m])