From d3ccc9896e8fd81063196352426f78c5085a13a3 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Sat, 14 Dec 2024 02:25:21 +0100 Subject: [PATCH] fix: actually commit the fix for inner lineCharwise (#116) --- lua/various-textobjs/textobjs/charwise.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/various-textobjs/textobjs/charwise.lua b/lua/various-textobjs/textobjs/charwise.lua index 80b4d57..a6b47f2 100644 --- a/lua/various-textobjs/textobjs/charwise.lua +++ b/lua/various-textobjs/textobjs/charwise.lua @@ -118,7 +118,7 @@ end ---current line, but characterwise ---@param scope "inner"|"outer" outer includes indentation and trailing spaces function M.lineCharacterwise(scope) - local pattern = "^(%s*).+(%s*)$" -- use `.-` so inner obj does not match trailing spaces + local pattern = "^(%s*).-(%s*)$" -- use `.-` so inner obj does not match trailing spaces core.selectClosestTextobj(pattern, scope, smallForward()) end