Skip to content

Commit

Permalink
fix: get_select get_lines
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomo committed May 13, 2023
1 parent 871cc1e commit e993dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/Trans/core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function M.get_select()
local e = #lines
lines[1] = lines[1]:sub(s_col)
lines[e] = line:sub(1, e_col)
return table.concat(lines, '\n')
return table.concat(lines, ' ')
end
end

Expand All @@ -52,7 +52,7 @@ function M.get_lines()
return vim.fn.getline(s_row)
else
local lines = vim.fn.getline(s_row, e_row)
return table.concat(lines, "\n")
return table.concat(lines, " ")
end
end

Expand Down

0 comments on commit e993dc1

Please sign in to comment.