Permalink
Browse files

Fix issue with wrong indent line

Taking the indent of `clnum` doesn't really make sense in this case, the
likely code should have been `line('.')` (the line we move to after the
search).
  • Loading branch information...
1 parent 08b1373 commit 1b4a95db4931317a34fb55091624a4f976728264 @AndrewRadev AndrewRadev committed Feb 6, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 indent/ruby.vim
View
@@ -289,7 +289,7 @@ function! s:ClosingBracketOnEmptyLine(cline_info)
if closing_bracket == ')' && col('.') != col('$') - 1
let ind = virtcol('.') - 1
elseif g:ruby_indent_block_style == 'do'
- let ind = indent(info.clnum)
+ let ind = indent(line('.'))
else " g:ruby_indent_block_style == 'expression'
let ind = indent(s:GetMSL(line('.')))
endif

0 comments on commit 1b4a95d

Please sign in to comment.