Expand ~ when processing args for dnd kitten

This commit is contained in:
Kovid Goyal 2026-05-14 06:13:53 +05:30
parent a28abf1573
commit a771b1d7e5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -381,6 +381,7 @@ func dnd_main(cmd *cli.Command, opts *Options, args []string) (rc int, err error
}
var uri_list []uri_list_item
for _, arg := range args {
arg = utils.Expanduser(arg)
st, err := os.Lstat(arg)
if err != nil {
return 1, err