Skip to content

Commit

Permalink
Remove redundant s:GetMSL()
Browse files Browse the repository at this point in the history
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 abe527c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indent/ruby.vim
Expand Up @@ -464,13 +464,13 @@ function GetRubyIndent(...)
" If the previous line was a private/protected keyword, add a " If the previous line was a private/protected keyword, add a
" level of indent " level of indent
if s:Match(lnum, s:indent_access_modifier_regex) if s:Match(lnum, s:indent_access_modifier_regex)
return indent(s:GetMSL(lnum)) + &sw return indent(lnum) + &sw
endif endif
elseif g:ruby_indent_access_modifier_style == 'outdent' elseif g:ruby_indent_access_modifier_style == 'outdent'
" If the previous line was a private/protected/public keyword, remove " If the previous line was a private/protected/public keyword, remove
" a level of indent " a level of indent
if s:Match(lnum, s:access_modifier_regex) if s:Match(lnum, s:access_modifier_regex)
return indent(s:GetMSL(lnum)) + &sw return indent(lnum) + &sw
endif endif
endif endif


Expand Down

0 comments on commit abe527c

Please sign in to comment.