kylechui / nvim-surround

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

Tab interferes with nvim-surround #44

Closed jemag closed 2 years ago

jemag commented 2 years ago

Test case:

fun (
    "test"
    "test"
    "test"
)

Where the space before each "test" is an actual tab character, e.g.: image

Hit cs"'

Notice it does not do anything. Works with spaces before each "test" however.

kylechui commented 2 years ago

@jemag Please test the branch fix-tabs branch that I've just created to see if that fixes your issue.

jemag commented 2 years ago

@kylechui hey, sorry I was creating these issues quick before going to bed, I will definitely take a look tomorrow though. Thanks for the quick work

kylechui commented 2 years ago

No worries, I'll just merge them into main then if they're working on my end. Should really look into how such basic bugs cropped up all of a sudden.

kylechui commented 2 years ago

By the way, thanks for opening up these issues! It really does help make the plugin more stable for more people

jemag commented 2 years ago

I have tested all 3 issues and everything works great with the update. I see that you added tests for these use cases as well, always appreciated from plugin authors