Skip to content
New issue

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

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

Already on GitHub? # to your account

Use event.buf/event.file directly instead of vim.fn.expand #1062

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

xu-cheng
Copy link
Contributor

We don't need to use vim.fn.expand(...) to get the buffer or file for the autocmd callbacks. Instead, use event.buf or event.file directly from the callback function argument.

See also #1047.

xu-cheng and others added 2 commits November 20, 2023 12:20
We don't need to use `vim.fn.expand(...)` to get the buffer or file for
the autocmd callbacks. Instead, use `event.buf` or `event.file` directly
from the callback function argument.

See also L3MON4D3#1047.
@L3MON4D3
Copy link
Owner

Nice, TY!
I'll assume that's all of them :D

@L3MON4D3 L3MON4D3 merged commit cab667e into L3MON4D3:master Nov 20, 2023
@xu-cheng xu-cheng deleted the autocmd branch November 20, 2023 21:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants