diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-03 17:36:40 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-03 17:38:28 +0200 |
| commit | 795b3692197acf75ff13ed8a14c9a11d4b32ec5f (patch) | |
| tree | 186dfea8eb2aa1f87a9960f415ac852f3768982e /internal/lsp/watcher | |
| parent | cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0 (diff) | |
| download | opencode-795b3692197acf75ff13ed8a14c9a11d4b32ec5f.tar.gz opencode-795b3692197acf75ff13ed8a14c9a11d4b32ec5f.zip | |
small fixes
Diffstat (limited to 'internal/lsp/watcher')
| -rw-r--r-- | internal/lsp/watcher/watcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lsp/watcher/watcher.go b/internal/lsp/watcher/watcher.go index a9d057c71..7a6eaacc5 100644 --- a/internal/lsp/watcher/watcher.go +++ b/internal/lsp/watcher/watcher.go @@ -347,7 +347,7 @@ func matchesSimpleGlob(pattern, path string) bool { // Otherwise, check if any path component matches pathComponents := strings.Split(path, "/") - for i := 0; i < len(pathComponents); i++ { + for i := range pathComponents { subPath := strings.Join(pathComponents[i:], "/") if strings.HasSuffix(subPath, rest) { return true |
