mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Fix error on typing Alt-l on a token that starts with a dash
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user