Permalink
Browse files

Remove redundant s:GetMSL()

In the case of an access modifier, there shouldn't be the need to find
an MSL, since the line itself couldn't be a part of a continuation.
  • Loading branch information...
AndrewRadev committed Nov 3, 2013
1 parent d4132ef commit abe527c3b583d4b11f1a87d29eb9752e062d7459
Showing with 2 additions and 2 deletions.
  1. +2 −2 indent/ruby.vim
View
@@ -464,13 +464,13 @@ function GetRubyIndent(...)
" If the previous line was a private/protected keyword, add a
" level of indent
if s:Match(lnum, s:indent_access_modifier_regex)
- return indent(s:GetMSL(lnum)) + &sw
+ return indent(lnum) + &sw
endif
elseif g:ruby_indent_access_modifier_style == 'outdent'
" If the previous line was a private/protected/public keyword, remove
" a level of indent
if s:Match(lnum, s:access_modifier_regex)
- return indent(s:GetMSL(lnum)) + &sw
+ return indent(lnum) + &sw
endif
endif

0 comments on commit abe527c

Please sign in to comment.