Commit Diff


commit - 7c1d55bff32b17bf9ac2b1a374c9cfb98935d847
commit + 4bb17137e88ce277e15da09d133b6a3809d26a8a
blob - af012cdc506b6e1a1d66a5a8b4595c4de967b1f7
blob + 1867c5f127efa93ad322b21e7071bf38a613d8d1
--- minibuffer.c
+++ minibuffer.c
@@ -128,7 +128,7 @@ recompute_completions(int add)
 		b->current_line = TAILQ_FIRST(&b->head);
 	b->current_line = adjust_line(b->current_line, b);
 	vl = b->current_line;
-	if (ministate.compl.must_select)
+	if (ministate.compl.must_select && vl != NULL)
 		vl->parent->type = LINE_COMPL_CURRENT;
 }