diff options
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); \ |