Bind 'buffer', 'editor', and 'moo' in tools scripts
parent
13142f4a4c
commit
03e6352fb5
|
@ -16,6 +16,9 @@ class PyCmd(moo.edit.Command):
|
||||||
dic = {}
|
dic = {}
|
||||||
dic['doc'] = ctx.get_doc()
|
dic['doc'] = ctx.get_doc()
|
||||||
dic['window'] = ctx.get_window()
|
dic['window'] = ctx.get_window()
|
||||||
|
dic['buffer'] = ctx.get_doc() and ctx.get_doc().get_buffer()
|
||||||
|
dic['editor'] = moo.edit.editor_instance()
|
||||||
|
dic['moo'] = moo
|
||||||
|
|
||||||
ctx.foreach(self.__set_variable, dic)
|
ctx.foreach(self.__set_variable, dic)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue