From 9170de1831bd1be633a77f871a7581e238958925 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Fri, 22 Aug 2008 07:14:56 -0700 Subject: another parsing fix --- src/Keys.cc | 6 +++--- 1 file 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) { return false; const char *str = FbTk::StringUtil::strcasestr(linebuffer.c_str(), - val[argc].c_str() + 1); // +1 to skip ':' - if (str) - current_key->m_command = FbTk::CommandParser::instance().parse(str); + val[argc].c_str()); + if (str) // +1 to skip ':' + current_key->m_command = FbTk::CommandParser::instance().parse(str + 1); if (!str || *current_key->m_command == 0 || mod) { delete first_new_key; -- cgit v0.11.2