diff --git a/evennia/utils/eveditor.py b/evennia/utils/eveditor.py index 59e60307cc..0034c85449 100644 --- a/evennia/utils/eveditor.py +++ b/evennia/utils/eveditor.py @@ -408,23 +408,23 @@ class CmdEditorGroup(CmdEditorBase): elif cmd == ":y": # :y - yank line(s) to copy buffer cbuf = linebuffer[lstart:lend] - editor.copy_buffer = cbuf + editor._copy_buffer = cbuf string = "%s, %s yanked." % (self.lstr.capitalize(), cbuf) elif cmd == ":x": # :x - cut line to copy buffer cbuf = linebuffer[lstart:lend] - editor.copy_buffer = cbuf + editor._copy_buffer = cbuf buf = linebuffer[:lstart] + linebuffer[lend:] editor.update_buffer(buf) string = "%s, %s cut." % (self.lstr.capitalize(), cbuf) elif cmd == ":p": # :p paste line(s) from copy buffer - if not editor.copy_buffer: + if not editor._copy_buffer: string = "Copy buffer is empty." else: - buf = linebuffer[:lstart] + editor.copy_buffer + linebuffer[lstart:] + buf = linebuffer[:lstart] + editor._copy_buffer + linebuffer[lstart:] editor.update_buffer(buf) - string = "Copied buffer %s to %s." % (editor.copy_buffer, self.lstr) + string = "Copied buffer %s to %s." % (editor._copy_buffer, self.lstr) elif cmd == ":i": # :i - insert new line new_lines = self.args.split('\n') @@ -520,7 +520,7 @@ class CmdEditorGroup(CmdEditorBase): elif cmd == ":echo": # set echoing on/off editor._echo_mode = not editor._echo_mode - string = "Echo mode set to %s" % editor.echo_mode + string = "Echo mode set to %s" % editor._echo_mode caller.msg(string)