enter four spaces when there are no matches
This commit is contained in:
parent
4e0c18ee1f
commit
786cb40073
@ -210,6 +210,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user