Skip to content

Commit 404201e

Browse files
authored
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).
1 parent 650b35d commit 404201e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def previous_indent
3838
def proposed_indent
3939
line = vim.echo("line('.')")
4040
col = vim.echo("col('.')")
41-
indent_value = vim.echo("GetPythonPEPIndent(line('.'))").to_i
41+
indent_value = vim.echo("GetPythonPEPIndent(#{line})").to_i
4242
vim.command("call cursor(#{line}, #{col})")
4343
return indent_value
4444
end

0 commit comments

Comments
 (0)