From c2e4038d187a576d99fadd38a2f58aae5bfda294 Mon Sep 17 00:00:00 2001 From: TheSast <27977196+TheSast@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:35:11 +0000 Subject: [PATCH] fix: inner `lineCharacterwise` including trailing whitespace --- lua/various-textobjs/charwise-textobjs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/various-textobjs/charwise-textobjs.lua b/lua/various-textobjs/charwise-textobjs.lua index 9e37433..2a8e31e 100644 --- a/lua/various-textobjs/charwise-textobjs.lua +++ b/lua/various-textobjs/charwise-textobjs.lua @@ -227,7 +227,7 @@ end ---current line (but characterwise) ---@param scope "inner"|"outer" outer includes indentation and trailing spaces function M.lineCharacterwise(scope) - local pattern = "^(%s*).*(%s*)$" + local pattern = "^(%s*).-(%s*)$" M.selectTextobj(pattern, scope, 0) end