summaryrefslogtreecommitdiff
path: root/src/bindings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings.cc')
-rw-r--r--src/bindings.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bindings.cc b/src/bindings.cc
index c4469bb1..3e65c049 100644
--- a/src/bindings.cc
+++ b/src/bindings.cc
@@ -21,7 +21,8 @@ static void print_branch(BindingTree *first, std::string str)
while (p) {
if (p->first_child)
print_branch(p->first_child, str + " " + p->text);
- printf("%d%s\n", p->id, (str + " " + p->text).c_str());
+ if (!p->chain)
+ printf("%d%s\n", p->id, (str + " " + p->text).c_str());
BindingTree *s = p->next_sibling;
delete p;
p = s;
@@ -83,9 +84,8 @@ static BindingTree *buildtree(const OBBindings::StringVect &keylist, int id)
p->chain = false;
}
- printf("<BUILDING>\n");
+ printf("BUILDING:\n");
print_branch(ret, "");
- printf("</BUILDING>\n");
// successfully built a tree
return ret;