Skip to content

Commit 2bf8bc5

Browse files
committed
Fix :Rlocale
1 parent 4d2ae2b commit 2bf8bc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/rails.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,9 +2252,9 @@ endfunction
22522252
function! s:localeEdit(cmd,...)
22532253
let c = a:0 ? a:1 : rails#app().default_locale()
22542254
if c =~# '\.'
2255-
call s:findedit(a:cmd,rails#app().find_file(c.e,'config/locales',['.yml','.rb'],'config/locales/'.c))
2255+
call s:edit(a:cmd,rails#app().find_file(c,'config/locales',[],'config/locales/'.c))
22562256
else
2257-
call s:edit(a:cmd,rails#app().find_file(c.e,'config/locales',[],'config/locales/'.c))
2257+
call s:findedit(a:cmd,rails#app().find_file(c,'config/locales',['.yml','.rb'],'config/locales/'.c))
22582258
endif
22592259
endfunction
22602260

0 commit comments

Comments
 (0)