mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 15:51:15 -03:00
editable_line: guard against empty text
there's got to be a nicer way to do this Fixes #11324
This commit is contained in:
@@ -184,3 +184,8 @@ sendline(r"""abbr fruit --command={git,hg,svn,} banana""")
|
||||
expect_prompt()
|
||||
sendline(r"""fruit foo""")
|
||||
expect_prompt("I am a banana")
|
||||
|
||||
# (don't add the literal string "bar" here or the expect_prompt will match it - so we add some no-op quotes)
|
||||
sendline(r"""function replace; commandline -r ""; echo echo b''ar; end; abbr foo --function replace""")
|
||||
sendline("foo")
|
||||
expect_prompt("bar")
|
||||
|
||||
Reference in New Issue
Block a user