fix sentence textobject for strings/comments
commit31024351ab13c87f69e5f390cbe3179771c77f00
authorGeorgi Kirilov <>
Tue, 14 Sep 2021 16:12:48 +0000 (14 19:12 +0300)
committerGeorgi Kirilov <>
Fri, 19 May 2023 15:26:42 +0000 (19 18:26 +0300)
treed0f818eca262546f0caa14b07d06ade65c82dbce
parentbb83b1bcd0c308a40076937a5f7a4281bcc81220
fix sentence textobject for strings/comments

When inside a string/comment, the sentence textobject used to select the
true list parent, instead of the string/comment. It should work with
strings/comments as well, just like sentence motions do.

It also used to be idempotent on repeating (like the sentence motions)
but, strictly speaking, when the selection is a whole sexp, the current
sentence is its parent. So, now repeating expands semantically.
walker.lua