This commit is contained in:
Kovid Goyal
2023-04-18 09:05:28 +05:30
parent e4baca6d97
commit 92e68a6e0c
4 changed files with 6 additions and 6 deletions

View File

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

View File

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