summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Keys.cc6
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;