diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-06 03:52:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-06 03:52:55 +0200 |
commit | 84e0f6ca9adcbdca254060713878ebc29faaaa65 (patch) | |
tree | 3025211efa4e5c1d9f48e9f369ecd786713b6c69 /src/if_python3.c | |
parent | d1864597a0d87fa9b3fbd09fc022b3405be7f274 (diff) | |
download | vim-git-84e0f6ca9adcbdca254060713878ebc29faaaa65.tar.gz |
updated for version 7.3.924v7.3.924
Problem: Python interface can't easily access options.
Solution: Add vim.options, vim.window.options and vim.buffer.options. (ZyX)
Diffstat (limited to 'src/if_python3.c')
-rw-r--r-- | src/if_python3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_python3.c b/src/if_python3.c index 659316b41..35fcffac2 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -1628,6 +1628,7 @@ Py3Init_vim(void) PyType_Ready(&DictionaryType); PyType_Ready(&ListType); PyType_Ready(&FunctionType); + PyType_Ready(&OptionsType); /* Set sys.argv[] to avoid a crash in warn(). */ PySys_SetArgv(1, argv); @@ -1649,6 +1650,8 @@ Py3Init_vim(void) PyModule_AddObject(mod, "vars", DictionaryNew(&globvardict)); PyModule_AddObject(mod, "vvars", DictionaryNew(&vimvardict)); + PyModule_AddObject(mod, "options", + OptionsNew(SREQ_GLOBAL, NULL, dummy_check, NULL)); #define ADD_INT_CONSTANT(name, value) \ tmp = PyLong_FromLong(value); \ |