[Alias] Aliased commands retain newlines (#4656)

Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
goettner
2024-01-08 16:34:48 -08:00
committed by GitHub
parent a393a10ceb
commit 569840e9e6
4 changed files with 40 additions and 3 deletions

View File

@@ -62,8 +62,7 @@ class AliasEntry:
word = view.get_quoted_word()
if len(word) < view.index - prev:
word = "".join((view.buffer[prev], word, view.buffer[view.index - 1]))
extra.append(word)
view.skip_ws()
extra.append(word.strip(" "))
return extra
def to_json(self) -> dict: