]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
some visual feedback for extra vertical space
[lyx.git] / src / BufferView2.C
index c7f58f9bf6bebb1f7e1b9da4c68c1e567aefc119..c130c1d51fe963b65a9be75103386315ccb4f808 100644 (file)
@@ -295,12 +295,12 @@ void BufferView::copy()
 }
 
 
-void BufferView::cut()
+void BufferView::cut(bool realcut)
 {
        if (available()) {
                hideCursor();
                update(text, BufferView::SELECT|BufferView::FITCUR);
-               text->cutSelection(this);
+               text->cutSelection(this, true, realcut);
                update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
                owner()->message(_("Cut"));
        }
@@ -346,8 +346,10 @@ void BufferView::selectLastWord()
 {
        if (!available()) return;
    
+       LyXCursor cur = text->selection.cursor;
        hideCursor();
        beforeChange(text);
+       text->selection.cursor = cur;
        text->selectSelectedWord(this);
        toggleSelection(false);
        update(text, BufferView::SELECT|BufferView::FITCUR);