Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(builtin.buffers): better buffer in cwd check #2847

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

jamestrew
Copy link
Contributor

Previously, using string.find, certain characters were taken as regex special characters leading to bad matches.
New approach takes bufname truncated to the length of cwd and compares the two strings.

ref: #2845 (comment)

Previously, using `string.find`, certain characters were taken as regex
special characters leading to bad matches.
New approach takes bufname truncated to the length of cwd and compares
the two strings.
@jamestrew jamestrew merged commit 8b56e9b into master Jan 4, 2024
13 checks passed
Conni2461 pushed a commit that referenced this pull request Mar 11, 2024
Previously, using `string.find`, certain characters were taken as regex
special characters leading to bad matches.
New approach takes bufname truncated to the length of cwd and compares
the two strings.

(cherry picked from commit 8b56e9b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant