Skip to content

Commit c6d511d

Browse files
committed
Fix issue setting/restoring compiler settings
1 parent 1cc36e9 commit c6d511d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

autoload/rails.vim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,17 +1826,17 @@ function! s:app_generator_command(bang,...) dict
18261826
let &l:makeprg = self.prepare_rails_command(cmd)
18271827
let &l:errorformat = s:efm_generate
18281828
call s:push_chdir(1)
1829-
if a:bang
1830-
make!
1831-
else
1832-
make
1833-
endif
1829+
noautocmd make!
18341830
finally
18351831
call s:pop_command()
18361832
let &l:errorformat = old_errorformat
18371833
let &l:makeprg = old_makeprg
18381834
endtry
1839-
return ''
1835+
if a:bang || empty(getqflist())
1836+
return ''
1837+
else
1838+
return 'cfirst'
1839+
endif
18401840
endfunction
18411841

18421842
call s:add_methods('app', ['generators','script_command','output_command','server_command','generator_command'])

0 commit comments

Comments
 (0)