Fix error on typing Alt-l on a token that starts with a dash

This commit is contained in:
Johannes Altmanninger 2019-10-19 12:31:09 +02:00
parent c8332bae8c
commit 868eba5e80

View File

@ -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