diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-22 14:14:56 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-22 14:14:56 (GMT) |
commit | 9170de1831bd1be633a77f871a7581e238958925 (patch) | |
tree | 0b4aa334dd6722aeb01c7747ffc1738a208aad0e | |
parent | 72a9dc9c3068f161bde059e8f14e8f3ed30c8def (diff) | |
download | fluxbox_lack-9170de1831bd1be633a77f871a7581e238958925.zip fluxbox_lack-9170de1831bd1be633a77f871a7581e238958925.tar.bz2 |
another parsing fix
-rw-r--r-- | src/Keys.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 637ccbb..b917989 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -450,9 +450,9 @@ bool Keys::addBinding(const string &linebuffer) { | |||
450 | return false; | 450 | return false; |
451 | 451 | ||
452 | const char *str = FbTk::StringUtil::strcasestr(linebuffer.c_str(), | 452 | const char *str = FbTk::StringUtil::strcasestr(linebuffer.c_str(), |
453 | val[argc].c_str() + 1); // +1 to skip ':' | 453 | val[argc].c_str()); |
454 | if (str) | 454 | if (str) // +1 to skip ':' |
455 | current_key->m_command = FbTk::CommandParser<void>::instance().parse(str); | 455 | current_key->m_command = FbTk::CommandParser<void>::instance().parse(str + 1); |
456 | 456 | ||
457 | if (!str || *current_key->m_command == 0 || mod) { | 457 | if (!str || *current_key->m_command == 0 || mod) { |
458 | delete first_new_key; | 458 | delete first_new_key; |