Skip to content

Commit

Permalink
Now <leader> . works correctly with helper_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Who828 committed Jul 23, 2012
1 parent e72cb81 commit 25822ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function! AlternateForCurrentFile()
let new_file = current_file
let in_spec = match(current_file, '^spec/') != -1
let going_to_spec = !in_spec
let in_app = match(current_file, '\<controllers\>') != -1 || match(current_file, '\<models\>') != -1 || match(current_file, '\<views\>') != -1
let in_app = match(current_file, '\<controllers\>') != -1 || match(current_file, '\<models\>') != -1 || match(current_file, '\<views\>') || match(current_file, '\<helpers\>') != -1
if going_to_spec
if in_app
let new_file = substitute(new_file, '^app/', '', '')
Expand Down

0 comments on commit 25822ea

Please sign in to comment.