py/repl: Enter four spaces when there are no matches.

Originally at adafruit#1859

Signed-off-by: scottbelden <scottabelden@gmail.com>
pull/7205/head
scottbelden 2019-05-07 13:55:20 -04:00 zatwierdzone przez Damien George
rodzic 1f1a54d0b1
commit befbff31b7
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -228,6 +228,10 @@ size_t mp_repl_autocomplete(const char *str, size_t len, const mp_print_t *print
// nothing found
if (q_first == 0) {
if (s_len == 0) {
*compl_str = " ";
return 4;
}
// If there're no better alternatives, and if it's first word
// in the line, try to complete "import".
if (s_start == org_str) {