From eb3cb4d99bc324d941e4fd32fd30c86ebf4c44e3 Mon Sep 17 00:00:00 2001 From: Kathryn Lingel Date: Tue, 7 May 2019 09:30:55 -0700 Subject: Fix tests and clarify first character access --- py/repl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py') diff --git a/py/repl.c b/py/repl.c index bb172d7a0..699ef10a6 100644 --- a/py/repl.c +++ b/py/repl.c @@ -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) { -- cgit v1.2.3