diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-20 20:23:56 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-20 20:23:56 (GMT) |
commit | 03dce043b78103a977bd6c48b81bb1b462aaac5f (patch) | |
tree | 6cc49956acf8c4049f7d6702058534d29c1c15c2 /src/FocusableList.cc | |
parent | b90a7e21a9f56f8e9f92c7ec357cbf683e6fd712 (diff) | |
download | fluxbox_pavel-03dce043b78103a977bd6c48b81bb1b462aaac5f.zip fluxbox_pavel-03dce043b78103a977bd6c48b81bb1b462aaac5f.tar.bz2 |
added ForEach key command
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; |