From 404201e874c3d0e5919c0e926cc11d0c86ce9816 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 3 Sep 2016 02:11:55 +0200 Subject: [PATCH] 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). --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2