Skip to content

Commit

Permalink
Fix bug where eclim#lang#Refactor would not always restore cwd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Burau committed Apr 18, 2017
1 parent 1aa3885 commit 63969ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions org.eclim.core/vim/eclim/autoload/eclim/lang.vim
Expand Up @@ -465,11 +465,12 @@ function! eclim#lang#Refactor(command)
endfor
finally
exec curwin . 'winc w'
if cwd_return
exec 'cd ' . escape(cwd, ' ')
endif
endtry
finally
if cwd_return
exec 'cd ' . escape(cwd, ' ')
endif

" re-enable swap files
let bufnum = 1
while bufnum <= bufend
Expand Down

0 comments on commit 63969ac

Please sign in to comment.