christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

Send lines one at a time #105

Closed christoomey closed 3 years ago

christoomey commented 3 years ago

Previously the VtrSendLinesToRunner command was implemented by joining the lines together with \r newline characters and then sending them via a single batch tmux send-keys call. This caused some REPLs (pry most notably) to display all the lines at once, and occasionally mis-handle the sent text.

With this change, each line is now sent via a distinct tmux send-keys call, better approximating a user interacting with the REPL.