fix: send_lines_to_terminal now honours ID variable when trim_spaces = false (#541)

Co-authored-by: amsesk <ubuntu@ip-10-128-254-37.ec2.internal>
This commit is contained in:
Kevin Amses 2024-02-12 02:15:12 -08:00 committed by GitHub
parent b49df5cdce
commit 63ac4c8529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -240,7 +240,7 @@ function M.send_lines_to_terminal(selection_type, trim_spaces, cmd_data)
if not lines or not next(lines) then return end
if not trim_spaces then
M.exec(table.concat(lines, "\n"))
M.exec(table.concat(lines, "\n"), id)
else
for _, line in ipairs(lines) do
local l = trim_spaces and line:gsub("^%s+", ""):gsub("%s+$", "") or line