Removed cleanups of on-command properties after command conclusion to allow for post-command referencing (e.g. by the lineeditor contrib). Resolves #562.
This commit is contained in:
parent
9d5a0b13ca
commit
f2f6c32d3f
2 changed files with 10 additions and 9 deletions
|
|
@ -14,6 +14,13 @@ Features of the editor:
|
||||||
search&replace text anywhere in buffer
|
search&replace text anywhere in buffer
|
||||||
formatting of buffer, or selection, to certain width + indentations
|
formatting of buffer, or selection, to certain width + indentations
|
||||||
allow to echo the input or not depending on your client.
|
allow to echo the input or not depending on your client.
|
||||||
|
|
||||||
|
|
||||||
|
Whereas the editor is intended to be called from other commands that
|
||||||
|
requires more elaborate text editing of data, there is also a
|
||||||
|
stand-alone editor command for editing Attributes at the end of this
|
||||||
|
module. To use it just import and add it to your default cmdset.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
@ -624,9 +631,9 @@ class CmdEditor(Command):
|
||||||
Usage:
|
Usage:
|
||||||
@editor <obj>/<attr>
|
@editor <obj>/<attr>
|
||||||
|
|
||||||
This will start Evennia's powerful line editor, which
|
This will start Evennia's powerful line editor to edit an
|
||||||
has a host of commands on its own. Use :h for a list
|
Attribute. The editor has a host of commands on its own. Use :h
|
||||||
of commands.
|
for a list of commands.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -421,12 +421,6 @@ def cmdhandler(called_by, raw_string, _testing=False, callertype="session", sess
|
||||||
else:
|
else:
|
||||||
caller.ndb.last_cmd = None
|
caller.ndb.last_cmd = None
|
||||||
|
|
||||||
# cleanup
|
|
||||||
del cmd.caller
|
|
||||||
del cmd.player
|
|
||||||
del cmd.session
|
|
||||||
del cmd.cmdset
|
|
||||||
|
|
||||||
# Done! This returns a deferred. By default, Evennia does
|
# Done! This returns a deferred. By default, Evennia does
|
||||||
# not use this at all.
|
# not use this at all.
|
||||||
returnValue(ret)
|
returnValue(ret)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue