Skip to content

Commit

Permalink
fix: inner lineCharacterwise including trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSast authored and chrisgrieser committed Sep 24, 2024
1 parent fcdec45 commit c2e4038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/various-textobjs/charwise-textobjs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c2e4038

Please sign in to comment.