X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/19c53ee5f8b6e9054d0ee1c295d876ccb96a21f7..ef1c1d0655423021f60d85baa4d4cb36f862b01e:/spec/spec_helper.rb?ds=inline diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4cd2b56..221e6ed 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -52,12 +52,8 @@ Vimrunner::RSpec.configure do |config| return (i != 0) end def set_hang_closing(value) - if value.nil? - vim.command("unlet! g:python_pep8_indent_hang_closing") - else - i = value ? 1 : 0 - vim.command("let g:python_pep8_indent_hang_closing=#{i}") - end + i = value ? 1 : 0 + vim.command("let g:python_pep8_indent_hang_closing=#{i}") end vim