]> git.lyx.org Git - lyx.git/blobdiff - src/minibuffer.C
small changes to ButtonController usage
[lyx.git] / src / minibuffer.C
index a1187d010f11c17b769d5d2bb8a0ce4262a8d2a1..1b417b813063b53fe4f53be5885c62395360e58a 100644 (file)
@@ -25,6 +25,8 @@
 #include "debug.h"
 #include "gettext.h"
 #include "LyXAction.h"
+#include "BufferView.h"
+#include "buffer.h"
 
 using std::endl;
 
@@ -138,7 +140,7 @@ extern "C" int C_MiniBuffer_peek_event(FL_OBJECT * ob, int event,
 
 void MiniBuffer::ExecCommand()
 {
-       text.clear();
+       text.erase();
        fl_set_input(the_buffer, "");
        fl_set_focus_object(owner->getForm(), the_buffer);
 }
@@ -251,7 +253,7 @@ void MiniBuffer::Reset()
 {
        if (!text_stored.empty()){
                Set(text_stored);
-               text_stored.clear();
+               text_stored.erase();
        }
 }