]> git.lyx.org Git - lyx.git/blobdiff - src/minibuffer.C
More ascii-export fixes and when making copy of single tabular cells now the
[lyx.git] / src / minibuffer.C
index 0ea7b7e25c4c8324220f913716478cdddf8a00a2..7df08768eb12a69c3e495282c5bdf19e6bf79c9d 100644 (file)
@@ -218,7 +218,9 @@ int MiniBuffer::peek_event(FL_OBJECT * ob, int event, int key)
                                // Return the inputted string
                                deactivate();
                                owner_->view()->focus(true);
-                               history_->push_back(input);
+                               if (!input.empty()) {
+                                       history_->push_back(input);
+                               }
                                stringReady.emit(input);
 # if 0
                        }
@@ -384,8 +386,11 @@ void MiniBuffer::redraw()
 
 void MiniBuffer::set_complete_input(string const & str)
 {
-       if (!str.empty())
-               set_input(str);
+       if (!str.empty()) {
+               // add a space so the user can type
+               // an argument immediately
+               set_input(str + " ");
+       }
 }