Skip to content

Commit 786cb40

Browse files
committed
enter four spaces when there are no matches
1 parent 4e0c18e commit 786cb40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

py/repl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ size_t mp_repl_autocomplete(const char *str, size_t len, const mp_print_t *print
210210

211211
// nothing found
212212
if (q_first == 0) {
213+
if (s_len == 0) {
214+
*compl_str = " ";
215+
return 4;
216+
}
213217
// If there're no better alternatives, and if it's first word
214218
// in the line, try to complete "import".
215219
if (s_start == org_str) {

0 commit comments

Comments
 (0)