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