Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

fix telescope issue when no matches #60

Merged

Conversation

emmanueltouzery
Copy link
Contributor

when there were no matches in the telescope search and the user pressed enter, we had a crash.

honestly i'm not sure what keep_last_buf is supposed to do...

you can reproduce the crash by opening the telescope picker, then typing garbage in it, until there are no matches, then pressing enter. This fixes it. Not sure whether commenting keep_last_buf would cause some loss of feature..?

when there were no matches in the telescope search and the user pressed
enter, we had a crash
@luckasRanarison
Copy link
Owner

luckasRanarison commented Oct 23, 2023

honestly i'm not sure what keep_last_buf is supposed to do...

It was for caching, but now it became useless because the buffer previewer will override it so removing it is fine.

But it's clearly an issue with telescope.

@emmanueltouzery
Copy link
Contributor Author

emmanueltouzery commented Oct 23, 2023

otherwise the "if selection" thing is in nvim-devdocs for sure.
Oh, I didn't notice it. It was the reason of the crash😅

@luckasRanarison luckasRanarison merged commit 382e171 into luckasRanarison:master Oct 23, 2023
@luckasRanarison
Copy link
Owner

luckasRanarison commented Oct 23, 2023

oh my bad, I've edited your comment instead of quote reply...

@emmanueltouzery
Copy link
Contributor Author

emmanueltouzery commented Oct 23, 2023

yes, but i think the keep_last_buf was also part of it. well possibly first the if selection, and then second crash (taking down the whole neovim) after closing the telescope window after the first crash, related to keep_last_buf. maybe fixing the if selection was enough though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants