X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fkeybindings.c;h=6fabea65ed499074ef9deb3e65077e8572f0ab64;hb=9b4365470d74903c6c5e78a964cf11cd64e5f839;hp=3809416489b4037857b5bb3a5de6062599772f3e;hpb=e11aa749989942b66dfc4fd7ccb72c2c8e767332;p=plomrogue diff --git a/src/keybindings.c b/src/keybindings.c index 3809416..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) {