wfxr / minimap.vim

📡 Blazing fast minimap / scrollbar for vim, powered by code-minimap written in Rust.
MIT License
1.19k stars 23 forks source link

Search highlighting occasionally missing #180

Open eMPee584 opened 1 year ago

eMPee584 commented 1 year ago

Check list

Environment info

Version info

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar 04 2023 19:41:33) Included patches: 1-1378

Question / Problem and steps to reproduce

Occasionally, searches are not highlighted in the map, I guess because of a rounding error? Occurs for me on this project's LICENSE file for example when searching for the word the .. Can anyone reproduce?

search-highlight-missing_2023-06-13_14-07-15 search-highlight-missing_2023-06-13_16-56-29

ZNielsen commented 1 year ago

Interesting, what's your window width at? Any other non-default settings would be helpful too, I'll try to repro.

SandeepTuniki commented 1 year ago

This has been happening to me as well. Below are my settings:

vim.g.minimap_highlight_search=1
vim.g.minimap_width = 10
vim.g.minimap_auto_start = 1
vim.g.minimap_auto_start_win_enter = 1
vim.g.minimap_git_colors = 1
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ZNielsen commented 1 year ago

Not stale, want to repro when I get the chance.

ZNielsen commented 12 months ago

Just getting a chance to try this, I'm unable to reproduce the issue using various minimap widths. I can try again with the exact minimap width of the screenshot if provided, or I can try with minimap width 10 if you can provide me an exact file+search combo that causes an error.

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.