Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisiadito committed Jun 20, 2020
1 parent e1a67d8 commit a6821ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joinLines.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function joinLines(v)
selection = util.String(selection)

-- swap all whitespaces with a single space
local modifiedSelection = string.gsub(selection, "\n%s+", " ")
local modifiedSelection = string.gsub(selection, "\n%s*", " ")
-- write modified selection to buffer
v.Buf:Replace(a, b, modifiedSelection)
end
Expand Down

0 comments on commit a6821ac

Please sign in to comment.