We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbdb629 commit e59e53cCopy full SHA for e59e53c
autoload/rails.vim
@@ -88,7 +88,7 @@ endfunction
88
89
function! s:push_chdir(...)
90
if !exists("s:command_stack") | let s:command_stack = [] | endif
91
- if exists("b:rails_root") && a:0 ? getcwd() !=# rails#app().path() : !s:startswith(getcwd(), rails#app().path())
+ if exists("b:rails_root") && (a:0 ? getcwd() !=# rails#app().path() : !s:startswith(getcwd(), rails#app().path()))
92
let chdir = exists("*haslocaldir") && haslocaldir() ? "lchdir " : "chdir "
93
call add(s:command_stack,chdir.s:escarg(getcwd()))
94
exe chdir.s:escarg(rails#app().path())
0 commit comments