mirror of
https://github.com/akinsho/toggleterm.nvim
synced 2024-09-16 21:34:03 +02:00
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:
parent
b49df5cdce
commit
63ac4c8529
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue