-
Notifications
You must be signed in to change notification settings - Fork 194
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
[mini.files] cursorline
is visible in file preview
#1391
Comments
Thanks for the issue! Haven't really noticed this myself, but I guess it indeed makes sense to not show cursorline in file previews. I'll take a look. |
This should now be resolved on latest |
Just tested, and it works intermittently for me now (sometimes there's a cursorline, sometimes there's not). Specifically, there's a cursorline for the first preview in a newly opened folder, and after that, no more cursorline is shown. Lines 2480 to 2481 in d084df4
|
Resolve #1391 (hopefully, for real this time)
Yeah, my bad, didn't interactively test when file is immediately previewed after opening explorer. Should be fixed now.
Only partially, but yes: 'cursorline' was set initially, but did not get unset later due to a big |
Now it works like a charm, thanks :) |
Contributing guidelines
Module(s)
mini.files
Description
When setting
The file preview will have the cursorline set.
I would turn the
cursorline
off myself in theMiniFilesWindowOpen
handler, but there seems to be no way currently to differentiate between a preview of a file vs. a (preview of a ) directory inmini.files
(bar requesting more state frommini.files
and/or traversing the filesystem ourselves)Neovim version
v0.10.2
Steps to reproduce
mini.files
and navigate to any file so that the preview is shownExpected behavior
Files do not have the cursorline set, since there is no way to edit them. For buffer previews this is different, since the line is where our cursor will land.
Actual behavior
Cursor line is set.
The text was updated successfully, but these errors were encountered: