X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fkeybindings.c;h=6fabea65ed499074ef9deb3e65077e8572f0ab64;hb=e2fa44b650122358ac3c691f988b51a9aaedada8;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)
{