psliwka / vim-smoothie

Smooth scrolling for Vim done right🥤
MIT License
988 stars 27 forks source link

[bug] fold will result in wrong position #34

Closed Freed-Wu closed 2 years ago

Freed-Wu commented 2 years ago
" $ uname -r
" 5.16.15-arch1-1
" $ has nvim
" ✔ nvim 0.6.1
" $ has python
" ✔ python 3.10.2
" $ cat test.vim
set runtimepath=$VIMRUNTIME
set runtimepath+=~/.local/share/nvim/repos/github.com/psliwka/vim-smoothie
nmap gg    <Plug>(Smoothie_gg)
" $ vi -u test.vim ~/.config/nvim/init.vim

Screenshot from 2022-04-02 19-44-19

Press 33gl, the position is still line 1.

Screenshot from 2022-04-02 19-44-31

However, if you comment the last line of test.vim. the position is correct line 33.

psliwka commented 2 years ago

Hi @Freed-Wu! I've pushed a potential fix in f2aaab110b49da21ab7abf4858173e3194109f6a. Could you please re-test it in your setup?

Freed-Wu commented 2 years ago

I can confirm the bug has been fixed.