Closed smjonas closed 2 years ago
So you're saying that if ysiw
is triggered on an empty line, then an effective NOOP should be done? I will say that this might be something that I don't "fix", given that vim-surround does not handle this "edge case" either, and iw
as a text-object selects the newline character (e.g. try viw
on an empty line). I think the reasoning for this is that "empty" lines are actually lines with just the newline character, which yields behavior different than what you are suggesting.
Ok, I think it's ok to close this then as this seems like an unusual edgecase (btw, vim-sandwich
behaves exactly the same too).
Thanks for bringing it up to begin with though! I really appreciate the feedback/possible improvements
Checklist
main
branch?:h nvim-surround
to see if there might be any relevant information there?To Reproduce First of all, sorry for bombarding you with all these issues :smile:
x} x