diff options
| author | Kathryn Lingel <kathryn@lingel.net> | 2019-05-07 09:30:55 -0700 |
|---|---|---|
| committer | Kathryn Lingel <kathryn@lingel.net> | 2019-05-07 09:30:55 -0700 |
| commit | eb3cb4d99bc324d941e4fd32fd30c86ebf4c44e3 (patch) | |
| tree | aea1b9a982b952cc0d37a89a29a7d98a76c0edf9 /py | |
| parent | 33b5cff8db0915875d7c45c467bff3c77b7d9532 (diff) | |
Fix tests and clarify first character access
Diffstat (limited to 'py')
| -rw-r--r-- | py/repl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -189,7 +189,7 @@ size_t mp_repl_autocomplete(const char *str, size_t len, const mp_print_t *print if (dest[0] != MP_OBJ_NULL) { // special case; filter out words that begin with underscore // unless there's already a partial match - if (s_len == 0 && *d_str == '_') { + if (s_len == 0 && d_str[0] == '_') { continue; } if (match_str == NULL) { |
