]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
re-enable mathrm toggling with C-m (was disabled by accident)
[lyx.git] / src / BufferView_pimpl.C
index 74dd4ca64847bde7a345ca41b43d46cba09c5614..4a11df383f117c610d2cb09c279744fddcc2fbc5 100644 (file)
@@ -756,10 +756,12 @@ void BufferView::Pimpl::selectionRequested()
  
 void BufferView::Pimpl::selectionLost()
 {
-       hideCursor();
-       toggleSelection();
-       bv_->getLyXText()->clearSelection();
-       showCursor(); 
+       if (active() && available()) { 
+               hideCursor();
+               toggleSelection();
+               bv_->getLyXText()->clearSelection();
+               showCursor(); 
+       }
 }