kylechui / nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.
MIT License
3.19k stars 62 forks source link

Error changing surrounds (the latest commit) #14

Closed thezbm closed 2 years ago

thezbm commented 2 years ago

I tried to change the surrounds using cs'" as usual when I encountered this error:

image

It turned out that ds also errored out. ys and S functioned correctly though. And I found out these only happened in the latest commit 0885e555fff2f7b36e446283f3e9a35fcdfef5b5.

Then I tried to use the previous commit 980070a9b3b55dd321d729a51a8c820f181ca14f and everything worked perfectly fine.

kylechui commented 2 years ago

Hi there, please test the code out on my implement-dot-repeat branch found here, I made a few other commits that change the overall structure of the code (and hopefully make things more stable). Let me know if things are still broken, thanks!

thezbm commented 2 years ago

Hi there, please test the code out on my implement-dot-repeat branch found here, I made a few other commits that change the overall structure of the code (and hopefully make things more stable). Let me know if things are still broken, thanks!

I have just tested those four operations I mentioned above and everything seemed working fine with your latest commit 107291fd355d43dc1e9c38cf2f60ad26ee969a42 in the implement-dot-repeat branch 😃.

kylechui commented 2 years ago

Perfect! If anything crops up again, feel free to re-open this issue and let me know