X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fkeybindings.c;h=6fabea65ed499074ef9deb3e65077e8572f0ab64;hb=c681a0fed768dfff7af1084dedeec25ab8a421fa;hp=f33b559407fe419e8ab18e1bb292731cddf27416;hpb=f24abb49cab88fe55d0da6db152634f7e1a4faf0;p=plomrogue diff --git a/src/keybindings.c b/src/keybindings.c index f33b559..6fabea6 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -10,6 +10,7 @@ #include "windows.h" /* for draw_all_wins() and WinMeta struct */ #include "misc.h" /* for texfile_sizes() */ #include "main.h" /* for World struct */ +#include "rexit.h" /* for err_exit() */ @@ -169,7 +170,8 @@ extern char * get_keyname(uint16_t keycode) extern void keyswin_mod_key(struct World * world, struct WinMeta * win_meta) { world->keyswindata->edit = 1; - draw_all_wins(win_meta); + exit_err(draw_all_wins(win_meta), world, "Trouble with draw_all_wins() in " + "keyswin_mod_key()."); int key = getch(); if (key < 1000) {