Skip to content

Commit

Permalink
Rename variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Giaquinta committed May 23, 2014
1 parent e9b6d99 commit 01748f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/keyboard.C
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ keyboard_manager::~keyboard_manager ()
void
keyboard_manager::register_action (KeySym keysym, unsigned int state, const wchar_t *ws)
{
char *translation = rxvt_wcstoutf8 (ws);
char *action = rxvt_wcstoutf8 (ws);

keysym_t *key = new keysym_t;

key->keysym = keysym;
key->state = state;
key->str = translation;
key->str = action;
key->type = keysym_t::STRING;

if (strncmp (translation, "builtin:", 8) == 0)
if (strncmp (action, "builtin:", 8) == 0)
key->type = keysym_t::BUILTIN;
else if (strncmp (translation, "builtin-string:", 15) == 0)
else if (strncmp (action, "builtin-string:", 15) == 0)
key->type = keysym_t::BUILTIN_STRING;

if (keymap.size () == keymap.capacity ())
Expand Down

0 comments on commit 01748f5

Please sign in to comment.