commit 1fa16111e51074699e2ad07e39ab98be91bcdcd6 from: Omar Polo date: Thu Aug 12 09:10:32 2021 UTC don't start if the keymap is empty commit - 32ac17a4ea1ad4c2f9e8c8d78dd5738958883291 commit + 1fa16111e51074699e2ad07e39ab98be91bcdcd6 blob - 0b5bd9a84eec6b43c96809bd50b478ffefcddee6 blob + 5b7da6d1130b55dc57f37640fa9daa167fbbef5a --- ui.c +++ ui.c @@ -1057,6 +1057,11 @@ ui_init() { setlocale(LC_ALL, ""); + if (TAILQ_EMPTY(&global_map.m)) { + fprintf(stderr, "no keys defined!\n"); + return 0; + } + minibuffer_init(); /* initialize help window */