fix: get_select get_lines

This commit is contained in:
xiaomo 2023-05-13 18:16:28 +08:00
parent 871cc1e48a
commit e993dc12be

View File

@ -32,7 +32,7 @@ function M.get_select()
local e = #lines local e = #lines
lines[1] = lines[1]:sub(s_col) lines[1] = lines[1]:sub(s_col)
lines[e] = line:sub(1, e_col) lines[e] = line:sub(1, e_col)
return table.concat(lines, '\n') return table.concat(lines, ' ')
end end
end end
@ -52,7 +52,7 @@ function M.get_lines()
return vim.fn.getline(s_row) return vim.fn.getline(s_row)
else else
local lines = vim.fn.getline(s_row, e_row) local lines = vim.fn.getline(s_row, e_row)
return table.concat(lines, "\n") return table.concat(lines, " ")
end end
end end