Skip to content

Commit

Permalink
respect before, after and let in AddFocusTag
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola committed May 4, 2016
1 parent bfa0265 commit add9b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function! s:Preserve(command)
endfunction

function! s:AddFocusTag()
call s:Preserve("normal! ? do\<cr>C, :focus do\<esc>")
call s:Preserve("normal! ?\\(^\\s*\\(before\\|after\\|let\\).*\\)\\@<! do\<cr>C, :focus do\<esc>")
endfunction

function! s:RemoveAllFocusTags()
Expand Down

0 comments on commit add9b29

Please sign in to comment.