home · contact · privacy
Removed redundant calls for zeroing of memory, especially where replaceable with...
[plomrogue] / src / client / keybindings.c
index 7207641d457b585a62e07a2c62db5d155dd68c45..299041903ef251bcd179ca848489c5d5e8146bdb 100644 (file)
@@ -9,7 +9,6 @@
 #include <string.h> /* strlen(), strchr(), strcmp() */
 #include "../common/readwrite.h" /* textfile_sizes(), try_fgets(),try_fwrite()*/
 #include "../common/try_malloc.h" /* try_malloc() */
-#include "wincontrol.h" /* get_winconf_by_win() */
 #include "windows.h" /* draw_all_wins() */
 #include "world.h" /* global world */
 
@@ -82,8 +81,8 @@ static struct KeyBindingDB * char_selected_kb_db(char c)
     }
     else if ('w' == c)
     {
-        struct WinConf * wc = get_winconf_by_win(world.wins.win_active);
-        kbd = &wc->kb;
+        struct Win * w = get_win_by_id(world.windb.active);
+        kbd = &w->kb;
     }
     return kbd;
 }
@@ -209,8 +208,6 @@ extern void read_keybindings_from_file(char * line, uint32_t linemax,
         kb_p->command = get_command(cmdptr);
         loc_last_ptr = & kb_p->next;
     }
-    kbd->edit = 0;
-    kbd->select = 0;
 }