Merge branch 'bugfix/fix_console_linenosie_backport_v4.4' into 'release/v4.4'

console: fix console stuck in auto test (backport v4.4)

See merge request espressif/esp-idf!16914
pull/8353/head
Jiang Jiang Jian 2022-01-27 07:18:46 +00:00
commit 1f45f160a8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -865,7 +865,7 @@ static int linenoiseEdit(char *buf, size_t buflen, const char *prompt)
nread = read(in_fd, &c, 1);
if (nread <= 0) return l.len;
if ( (getMillis() - t1) < LINENOISE_PASTE_KEY_DELAY ) {
if ( (getMillis() - t1) < LINENOISE_PASTE_KEY_DELAY && c != ENTER) {
/* Pasting data, insert characters without formatting.
* This can only be performed when the cursor is at the end of the
* line. */