X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/10228215c76da4004b5ac4b60cfdf94682ea6e22..2a7f8fd51e5cd7f5f8e2d6f8e1fb48a6b178098f:/spec/spec_helper.rb?ds=sidebyside 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