This pull request simply adds id to the arguments passed to M.exec() when trim_spaces = false in toggleterm.send_lines_to_terminal.
This wasn't causing issues for the various user commands (e.g., ToggleTermSendCurrentLine) because they all set trim_spaces = true.
It was causing issues for implementations that call send_lines_to_terminal with trim_spaces = true that tried sending text to terminals other than the first terminal, where term.id != 1; Text was always sent to the first terminal.
This pull request simply adds
id
to the arguments passed toM.exec()
whentrim_spaces = false
intoggleterm.send_lines_to_terminal
.This wasn't causing issues for the various user commands (e.g.,
ToggleTermSendCurrentLine
) because they all settrim_spaces = true
.It was causing issues for implementations that call
send_lines_to_terminal
withtrim_spaces = true
that tried sending text to terminals other than the first terminal, whereterm.id != 1
; Text was always sent to the first terminal.