Commit Diff


commit - 19e812f1ec9b4609313f2dd138df8e81fa463c22
commit + 84ea85a998559020c4c599a679f3e19346c4afa0
blob - 512a23532ae623251016fac6326d97905a8fd40a
blob + c3c40a4721fa64f2269549e2a9b07616b0eefe42
--- mymenu.c
+++ mymenu.c
@@ -930,7 +930,7 @@ enum state loop(struct rendering *r, char **text, int 
 
           case DEL_LINE: {
             for (int i = 0; i < *textlen; ++i)
-              *text[i] = 0;
+              *(*text + i) = 0;
             update_completions(cs, *text, lines, vlines, r->first_selected);
             r->offset = 0;
             break;