mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Fix #6193
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
"kitty/tools/utils/paths"
|
||||
"kitty/tools/utils/shlex"
|
||||
|
||||
"github.com/bmatcuk/doublestar"
|
||||
"github.com/bmatcuk/doublestar/v4"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
@@ -145,7 +145,7 @@ func resolve_file_spec(spec string, is_glob bool) ([]string, error) {
|
||||
ans = paths_ctx.AbspathFromHome(ans)
|
||||
}
|
||||
if is_glob {
|
||||
files, err := doublestar.Glob(ans)
|
||||
files, err := doublestar.FilepathGlob(ans)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%s is not a valid glob pattern with error: %w", spec, err)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ def option_text() -> str:
|
||||
--glob
|
||||
type=bool-set
|
||||
Interpret file arguments as glob patterns. Globbing is based on
|
||||
Based on standard wildcards with the addition that ``/**/`` matches any number of directories.
|
||||
standard wildcards with the addition that ``/**/`` matches any number of directories.
|
||||
See the :link:`detailed syntax <https://github.com/bmatcuk/doublestar#patterns>`.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user