diff options
Diffstat (limited to 'src/FocusableList.cc')
-rw-r--r-- | src/FocusableList.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FocusableList.cc b/src/FocusableList.cc index 8c43181..366ef8a 100644 --- a/src/FocusableList.cc +++ b/src/FocusableList.cc | |||
@@ -38,10 +38,11 @@ using std::vector; | |||
38 | 38 | ||
39 | void FocusableList::parseArgs(const string &in, int &opts, string &pat) { | 39 | void FocusableList::parseArgs(const string &in, int &opts, string &pat) { |
40 | string options; | 40 | string options; |
41 | int err = FbTk::StringUtil::getStringBetween(options, in.c_str(), '{', '}'); | 41 | int err = FbTk::StringUtil::getStringBetween(options, in.c_str(), '{', '}', |
42 | " \t\n"); | ||
42 | 43 | ||
43 | // the rest of the string is a ClientPattern | 44 | // the rest of the string is a ClientPattern |
44 | pat = in.c_str() + err; | 45 | pat = in.c_str() + (err > 0 ? err : 0); |
45 | 46 | ||
46 | // now parse the options | 47 | // now parse the options |
47 | vector<string> args; | 48 | vector<string> args; |