Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix blank buffer picker preview on doc with no views
Reproduction: * `hx` * Open any file in a split (`<space>f` and choose anything with `<C-v>`) * Close the split with `<C-w>q` * Open up the buffer picker and look the file you opened previously Previously the preview was empty in this case because the Document's `selections` hashmap was empty and we returned early, giving `None` instead of a FileLocation. Instead when the Document is not currently open in any view we can show the document but with no range highlighted.
- Loading branch information