Yggdroot / LeaderF

An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly for both vim and neovim.
Apache License 2.0
2.14k stars 180 forks source link

neovim开启winbar之后 leaderf跳转不准确 #1000

Closed yao-weijie closed 1 year ago

yao-weijie commented 1 year ago

涉及的两个插件

Describe your question, feature request, or bug.

大概从neovim 0.8 开始, neovim新增了winbar功能, 最近在使用leaderf的过程中, 发现开启了winbar之后会有一点小问题

不开启winbar的时候 leaderf的跳转可以直接跳转到目标位置上 Peek 2023-04-02 14-04

当开启了winbar的时候 leaderf的跳转总是先跳转到目标行的上一行, 然后会自动往下一行才会到目标位置上 在更换了其他插件的winbar功能以后, 这个现象仍然存在 Peek 2023-04-02 14-05

Steps to reproduce

Actual behaviour

Expected behaviour

Yggdroot commented 1 year ago

这是nvim的bug,比如执行

:5 | setlocal cursorline! | redraw | sleep 150m | setlocal cursorline!

就会复现这个问题。