mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-31 00:45:17 +08:00
Fix error on typing Alt-l on a token that starts with a dash
This commit is contained in:
parent
c8332bae8c
commit
868eba5e80
@ -7,7 +7,7 @@ function __fish_list_current_token -d "List contents of token under the cursor i
|
||||
if test -d $val
|
||||
ls $val
|
||||
else
|
||||
set dir (dirname $val)
|
||||
set dir (dirname -- $val)
|
||||
if test $dir != . -a -d $dir
|
||||
ls $dir
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user