comparison src/if_py_both.h @ 16576:bcc343175103 v8.1.1291

patch 8.1.1291: not easy to change directory and restore commit https://github.com/vim/vim/commit/1063f3d2008f22d02ccfa9dab83a23db52febbdc Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 7 22:06:52 2019 +0200 patch 8.1.1291: not easy to change directory and restore Problem: Not easy to change directory and restore. Solution: Add the chdir() function. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4358)
author Bram Moolenaar <Bram@vim.org>
date Tue, 07 May 2019 22:15:05 +0200
parents 8c3a1bd270bb
children 7e733046db1d
comparison
equal deleted inserted replaced
16575:e0baba49b677 16576:bcc343175103
1030 } 1030 }
1031 1031
1032 Py_DECREF(newwd); 1032 Py_DECREF(newwd);
1033 Py_XDECREF(todecref); 1033 Py_XDECREF(todecref);
1034 1034
1035 post_chdir(FALSE, FALSE); 1035 post_chdir(CDSCOPE_GLOBAL);
1036 1036
1037 if (VimTryEnd()) 1037 if (VimTryEnd())
1038 { 1038 {
1039 Py_DECREF(ret); 1039 Py_DECREF(ret);
1040 return NULL; 1040 return NULL;