]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCommandBuffer.C
convert author names and status messages to docstring
[lyx.git] / src / frontends / controllers / ControlCommandBuffer.C
index 68cdd703c15393c3bce60378173c77aa4e4670b9..ef4bcb6a281f0c45842c72d684907409fa5e330d 100644 (file)
@@ -38,7 +38,8 @@ namespace frontend {
 
 namespace {
 
-struct prefix_p {
+class prefix_p {
+public:
        string p;
        prefix_p(string const & s)
                : p(s) {}
@@ -78,7 +79,7 @@ string const ControlCommandBuffer::historyDown()
 }
 
 
-string const ControlCommandBuffer::getCurrentState() const
+docstring const ControlCommandBuffer::getCurrentState() const
 {
        return lv_.view()->cursor().currentState();
 }
@@ -130,7 +131,9 @@ void ControlCommandBuffer::dispatch(string const & str)
 
        history_.push_back(str);
        history_pos_ = history_.end();
-       lv_.getLyXFunc().dispatch(lyxaction.lookupFunc(str), true);
+       FuncRequest func = lyxaction.lookupFunc(str);
+       func.origin = FuncRequest::COMMANDBUFFER;
+       lv_.dispatch(func);
 }
 
 } // namespace frontend