I made up my mind about a previous question in #25
I think that the user environment should not be changed by the plugin. Thus, as the current directory is changed during the script runtime, it has to be reset to its previous value at the end of the script execution, whatever the result is (success or failure).
I'll probably look furthermore to try to avoid using lcd %:p:h, but for now this patch does the job.
I made up my mind about a previous question in #25 I think that the user environment should not be changed by the plugin. Thus, as the current directory is changed during the script runtime, it has to be reset to its previous value at the end of the script execution, whatever the result is (success or failure).
I'll probably look furthermore to try to avoid using
lcd %:p:h
, but for now this patch does the job.