Skip to content

Commit b6276ba

Browse files
committed
Tighten regex for gf on foo#bar
1 parent 96f48b9 commit b6276ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ function! s:RailsIncludefind(str,...)
19871987
let str = s:gsub(str,"[\"']",'')
19881988
if line =~# '\<\(require\|load\)\s*(\s*$'
19891989
return str
1990-
elseif str =~# '\l\w*#\w\+'
1990+
elseif str =~# '^\l\w*#\w\+$'
19911991
return 'app/controllers/'.s:sub(str,'#','_controller.rb#')
19921992
endif
19931993
let str = rails#underscore(str)

0 commit comments

Comments
 (0)