I noticed that, if I use
call term_sendkeys(buf, "make\n")
and then I try to execute something else in the terminal windows (i.e. ls), vim append the last string sent from command mode to the actual string just inserted in the terminal window.
Resuming, if I execute (from command mode)
call term_sendkeys(buf, "make\n")
and then, from the terminal window I execute ls , the inner shell automaticallt executes
lsmake
Is this a bug or what am I missing here ?