Terminal would fail to switch directory because of sending prior key presses behind the 'cd ~/example', failing to change directory because it would run command '321k33cd ~/example' or fail to enter the command at all.
Changed fn.chansend to vim.api.nvim_chan_send. Fixed issue on my system.
I noticed this when quickswitching to another buffer using Telescope in a toggleterm float when escaped from the terminal
Terminal would fail to switch directory because of sending prior key presses behind the 'cd ~/example', failing to change directory because it would run command '321k33cd ~/example' or fail to enter the command at all.
Changed fn.chansend to vim.api.nvim_chan_send. Fixed issue on my system.
I noticed this when quickswitching to another buffer using Telescope in a toggleterm float when escaped from the terminal
-Persist mode was enabled -Windows Terminal