kylechui / nvim-surround

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

ds} deletes one paren above instead of current surround #152

Closed uloco closed 1 year ago

uloco commented 1 year ago

Checklist

To reproduce

https://user-images.githubusercontent.com/8818340/190410044-563cfc1f-9ee2-4ef0-93d1-1fb0ffabbb3e.mov

I just press cs} in the bottom part. it always jumps to the top part. also when i do ds}. it only does for the current when i do cs{ which is weird and not what should happen. This also happens with other parens like ] and )

Expected behavior

should always respect current surrounding braces when used with }, { should just take whitespace into account also.

Actual behavior

No response

Additional context

No response

kylechui commented 1 year ago

Are you using the tagged version or main branch? Please try switching to the other and let me know if that changes anything.

uloco commented 1 year ago

I was indeed on the tagged version and updating to latest fixed this for me, ty.

kylechui commented 1 year ago

That's good to hear! I'm still trying to work on the latest version when I have the time, so hopefully I'll be able to release a new version at some point this year.