diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-04 15:14:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-04 15:14:37 +0200 |
commit | 4880f2e4701d1f07b812b33d260a3ab75e4e64d4 (patch) | |
tree | 2823e25c318118be59aef74f178390f3a6acad42 /cli/context.cxx | |
parent | f3c7cd177b85669f4e25a6b3322ce79531adcaa1 (diff) |
Fix bug in argument formatting
Diffstat (limited to 'cli/context.cxx')
-rw-r--r-- | cli/context.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/context.cxx b/cli/context.cxx index 6b5e2f8..1fd4996 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -297,6 +297,11 @@ translate (string const& s, std::set<string> const& set) r += s[i]; } + // If we found the opening '<' but no closing '>', add the rest. + // + if (p != string::npos) + r.append (s, p, string::npos); + return r; } |