Skip to content

Commit

Permalink
Fixed bug with moving up directory stack. 'Cannot write to file'
Browse files Browse the repository at this point in the history
  • Loading branch information
funayman committed Nov 21, 2012
1 parent 90f3ae8 commit 485cd01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion findAndroidManifest/after/ftplugin/java.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def find_manifest(path):
return found

found = False
pwd = os.getcwd()
old_dir = pwd = os.getcwd()

found = find_manifest(pwd)

Expand All @@ -40,6 +40,8 @@ if found:
target = vim.eval("s:targetAndroidJar")
cmd = "let $CLASSPATH = '" + target + "'"
vim.command(cmd)

os.chdir(old_dir)
endpython
endfunction

Expand Down

0 comments on commit 485cd01

Please sign in to comment.