akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

[BUG] Lines send before REPL is opened #547

Open raffaem opened 5 months ago

raffaem commented 5 months ago

Is there an existing issue for this?

Current Behavior

When I send line to terminal, with whatever command, for example with

require("toggleterm").send_lines_to_terminal("single_line", trim_spaces, { args = vim.v.count })

the line is send a first time before the REPL is opened, and a second time after it has been opened.

Here is a video: 20240301T132234.webm

Expected Behavior

The line should be send only one time after the REPL has opened.

Steps To Reproduce

  1. Open a file
  2. Send line to terminal

Environment

- OS: Arch Linux
- neovim version: 0.9.5
- Shell: bash

Anything else?

No response