Skip to content

Conversation

alex-courtis
Copy link
Member

@alex-courtis alex-courtis commented Dec 19, 2022

fixes #1841

vim.fn.filereadable is expensive. Empty buftype should be good enough to detect whether it's a buffer that we can show/highlight.

Follows hotfix 4fc74ca

Follows on from #1830

Copy link
Collaborator

@chomosuke chomosuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Haven't had time to dig into #1841 but this does make sense and looks like something that would fix it.

@alex-courtis alex-courtis merged commit e14c289 into master Dec 19, 2022
@alex-courtis
Copy link
Member Author

Haven't had time to dig into #1841

No worries at all; there's no hurry.

@chomosuke
Copy link
Collaborator

1 min too late but update: I just tested this PR and it does work!

@gegoune gegoune deleted the 1841-do-not-reload-open-buffers-when-not-a-file-buffer branch December 19, 2022 12:13
@alex-courtis
Copy link
Member Author

1 min too late but update: I just tested this PR and it does work!

Thanks @chomosuke

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.

Error when generating CMake files.
2 participants