]> git.lyx.org Git - lyx.git/blobdiff - src/KeyMap.cpp
Allow using \binom without amsmath and add support for \brace and \brack
[lyx.git] / src / KeyMap.cpp
index b068b2c95faf75e1376a6239b7027c213f38ef47..d1c7040c7d0c83dfe8fa491a20edd3392910386a 100644 (file)
@@ -250,7 +250,7 @@ bool KeyMap::read(string const & bind_file, KeyMap * unbind_map)
 void KeyMap::write(string const & bind_file, bool append, bool unbind) const
 {
        ofstream os(bind_file.c_str(), 
-               append ? (ios::app | ios:: out): ios::out);
+               append ? (ios::app | ios::out) : ios::out);
 
        if (!append)
                os << "## This file is automatically generated by lyx\n"
@@ -261,7 +261,7 @@ void KeyMap::write(string const & bind_file, bool append, bool unbind) const
        BindingList::const_iterator it = list.begin();
        BindingList::const_iterator it_end = list.end();
        for (; it != it_end; ++it) {
-               kb_action action = it->request.action;
+               FuncCode action = it->request.action;
                string arg = to_utf8(it->request.argument());
 
                os << tag << " \""
@@ -403,7 +403,7 @@ void KeyMap::unbind(KeySequence * seq, FuncRequest const & func, unsigned int r)
                                        remove = it;
                                        if (it->table.get())
                                                it->table.reset();
-                                       }
+                               }
                        } else if (it->table.get()) {
                                it->table->unbind(seq, func, r + 1);
                                if (it->table->empty())
@@ -476,7 +476,7 @@ KeyMap::BindingList KeyMap::listBindings(bool unbound, int tag) const
                LyXAction::const_func_iterator fit = lyxaction.func_begin();
                LyXAction::const_func_iterator fit_end = lyxaction.func_end();
                for (; fit != fit_end; ++fit) {
-                       kb_action action = fit->second;
+                       FuncCode action = fit->second;
                        bool has_action = false;
                        BindingList::const_iterator it = list.begin();
                        BindingList::const_iterator it_end = list.end();