2013/06/06 Thu 1:30:53 UTC+9 ZyX wrote:
> Now os.chdir claims it is for internal use only. "Like posix.chdir" also
> means that os.chdir is vim.chdir. You just should not use chdir from vim
> module, but use it from os module.
Oh! I gave up fixing the help messages.
What I really want to do is fixing the crash.
diff --git a/src/if_py_both.h b/src/if_py_both.h
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -718,6 +718,8 @@
PyObject *todecref;
char_u *new_dir;
+ if (!_chdir)
+ return NULL;
if (!(r = PyObject_Call(_chdir, args, kwargs)))
return NULL;
Thanks,
Ken Takata
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.