Skip to content
Snippets Groups Projects

daemon/io: tty recognizes command boundary

Merged Lukas Jezek requested to merge tty-command-boundary into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -503,7 +503,7 @@ void io_tty_process_input(uv_stream_t *stream, ssize_t nread, const uv_buf_t *bu
const char *delim = args->quiet ? "" : "> ";
/* No command, just new line */
if (nread == 1) {
if (nread == 1 && args->tty_binary_output == false && commands[nread-1] == '\0') {
if (stream_fd != STDIN_FILENO) {
fprintf(out, "%s", delim);
}
Loading