Open JS-Zheng opened 2 years ago
I also met this similar bug, In a folded text contain about 1000 lines, press gg
then G
, then k
cannot move, after waiting a few seconds or press za
, it can recover to normal.
I can verify the same bug. I'd really like to continue using this plugin but this bug is a very common occurrence in my workflow. Could I contribute to fixing this somehow? I'm new to vim/vimL and would require some direction, though.
I believe this bug occur after https://github.com/psliwka/vim-smoothie/issues/34. A older vim-smoothie can avoid this bug.
Thanks for reporting! Unfortunately I couldn't figure out yet why does that happen. For now I added a workaround, which should cause the plugin to jump directly to the target position if it detects that animation is stuck. It's not pretty, but at least will prevent trapping users and their cursors ;)
Hi @psliwka,
Thanks for workaround. IMHO, the problem may be because vim-smoothie does not consider the folded lines. Perhaps It can use foldclosedend()
to calculate end line of folds.
@psliwka Thanks, you're the MVP. It doesn't get stuck after the update. If it helps diagnose at all, I use fzf with nvim and whenever I got this cursor stuck issue, I couldn't open fzf. I get an error with something along the lines of "Can't exit terminal mode and go into normal mode". Best of luck and thanks again!
vim-smoothie version: b440f13 vim version: 8.2.4700
As mentioned in the title, when I use the scrolling commands (e.g.,
<C-D>
,zt
) to cross the continuous folding, the cursor will be stuck. Then,j
andk
cannot work normally, for example: