gerw / vim-latex-suite

71 stars 16 forks source link

Fix #9 restoring of cwd #10

Closed kaihowl closed 9 years ago

kaihowl commented 9 years ago

The s:origdir variable was local to the source file. Since all functions used the same name for the variable to save the old working directory, restoring did not work with nested function calls as one call would overwrite the restore value of a function invocation higher up the stack.

This was fixed by replacing s:origdir with a local variable l:origdir