summaryrefslogtreecommitdiff
path: root/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-01 03:44:22 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-01 03:44:22 -0400
commitea3b386062e62379c546239f2e95cb1e11c56d23 (patch)
treef200790541093b401b3a40af000a90daff7b6cb5 /session.cc
parent8ed99e621daccdebfe4fd81d9b3744ed1cdb375f (diff)
downloadledger-ea3b386062e62379c546239f2e95cb1e11c56d23.tar.gz
ledger-ea3b386062e62379c546239f2e95cb1e11c56d23.tar.bz2
ledger-ea3b386062e62379c546239f2e95cb1e11c56d23.zip
Added a new 'format' debugging command, which dissects the formatting
expression in its argument.
Diffstat (limited to 'session.cc')
-rw-r--r--session.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.cc b/session.cc
index 407f6176..c022696a 100644
--- a/session.cc
+++ b/session.cc
@@ -292,8 +292,8 @@ expr_t::ptr_op_t session_t::lookup(const string& name)
const char * p = name.c_str();
switch (*p) {
case 'o':
- if (std::strncmp(p, "option_", 7) == 0) {
- p = p + 7;
+ if (std::strncmp(p, "opt_", 4) == 0) {
+ p = p + 4;
switch (*p) {
case 'd':
if (std::strcmp(p, "debug_") == 0)