Skip to content

Commit a88d41e

Browse files
committed
main: Fix faulty test
sudo -e does not take a command, so use another flag that does.
1 parent b3f66fc commit a88d41e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

highlighters/main/test-data/alias-precommand-option-argument2.zsh

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
# vim: ft=zsh sw=2 ts=2 et
2929
# -------------------------------------------------------------------------------------------------
3030

31-
alias sde='sudo -e'
32-
alias seu='sde -u'
31+
alias sdb='sudo -b'
32+
alias sbu='sdb -u'
3333
sudo(){}
3434

35-
BUFFER='seu phy1729 echo foo'
35+
BUFFER='sbu phy1729 echo foo'
3636

3737
expected_region_highlight=(
38-
'1 3 alias' # seu
39-
'1 3 precommand' # seu (sudo)
38+
'1 3 alias' # sbu
39+
'1 3 precommand' # sbu (sudo)
4040
'5 11 default' # phy1729
4141
'13 16 commmand "issue #540"' # echo (not builtin)
4242
'18 20 default' # foo

0 commit comments

Comments
 (0)