From: Daniel Hahler Date: Sat, 3 Sep 2016 00:11:55 +0000 (+0200) Subject: spec_helper: pass in already obtained line (#60) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/404201e874c3d0e5919c0e926cc11d0c86ce9816 spec_helper: pass in already obtained line (#60) The tests are quite slow, and I have the feeling that most comes from the helpers, and more importantly not reusing the Vim instance (because of the lockup issue). --- diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 148f705..46ad026 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -38,7 +38,7 @@ Vimrunner::RSpec.configure do |config| def proposed_indent line = vim.echo("line('.')") col = vim.echo("col('.')") - indent_value = vim.echo("GetPythonPEPIndent(line('.'))").to_i + indent_value = vim.echo("GetPythonPEPIndent(#{line})").to_i vim.command("call cursor(#{line}, #{col})") return indent_value end