Fix a bug in :+ and := commands in EvEditor

This commit is contained in:
Vincent Le Goff 2017-02-09 18:46:36 -08:00 committed by Griatch
parent bcba90f27a
commit 362e03a3f8

View file

@ -375,7 +375,8 @@ class CmdLineInput(CmdEditorBase):
buf = editor.get_buffer()
# add a line of text to buffer
line = self.args
line = self.raw_string
print "Entered", repr(line)
if not editor._code:
if not buf:
buf = self.args
@ -413,7 +414,7 @@ class CmdEditorGroup(CmdEditorBase):
aliases = [":","::", ":::", ":h", ":w", ":wq", ":q", ":q!", ":u", ":uu", ":UU",
":dd", ":dw", ":DD", ":y", ":x", ":p", ":i", ":j",
":r", ":I", ":A", ":s", ":S", ":f", ":fi", ":fd", ":echo",
":-", "-+", "-="]
":-", ":+", ":="]
arg_regex = r"\s.*?|$"
def func(self):