mirror of
https://github.com/wassname/pyreadline.git
synced 2026-08-15 12:45:24 +08:00
pyreadline: fix pre_inputhook and startup_hook, autoindent were not functioning in ipython
This commit is contained in:
@@ -22,8 +22,6 @@ class BaseMode(object):
|
||||
self.rlobj=rlobj
|
||||
self.exit_dispatch = {}
|
||||
self.key_dispatch = {}
|
||||
self.startup_hook=None
|
||||
self.pre_input_hook=None
|
||||
self.argument=1
|
||||
self.prevargument=None
|
||||
|
||||
@@ -60,6 +58,8 @@ class BaseMode(object):
|
||||
mark_directories=property(*_gs("mark_directories"))
|
||||
completer=property(*_gs("completer"))
|
||||
begidx=property(*_gs("begidx"))
|
||||
startup_hook=property(*_gs("startup_hook"))
|
||||
pre_input_hook=property(*_gs("pre_input_hook"))
|
||||
endidx=property(*_gs("endidx"))
|
||||
|
||||
console=property(_g("console"))
|
||||
|
||||
Reference in New Issue
Block a user