-
-
Notifications
You must be signed in to change notification settings - Fork 855
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(builtin.buffers): improve
only_cwd
handling with partial matches
closes #2843 Previously, bad partial matches between cwd and target buffer path would result in non-cwd buffers showing up in the picker despite using `only_cwd=true`. eg. cwd = `/foo/bar` target buffer = `foo/bar1/baz.txt` The target buffer starts with the cwd path. This is fixed by appending a path separator before comparing/matching: eg. cwd = `/foo/bar/` target buffer = `foo/bar1/baz.txt`
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters