mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-05 08:57:35 +00:00
pastesel.patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4171 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9a6816ef0a
commit
f15d44ccf4
@ -427,6 +427,8 @@ void BufferView::paste()
|
|||||||
|
|
||||||
// paste
|
// paste
|
||||||
text->pasteSelection(this);
|
text->pasteSelection(this);
|
||||||
|
// bug 393
|
||||||
|
text->clearSelection();
|
||||||
update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
|
update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
|
||||||
// why fake a selection only I think it should be a real one and not only
|
// why fake a selection only I think it should be a real one and not only
|
||||||
// a painted one (Jug 20020318).
|
// a painted one (Jug 20020318).
|
||||||
|
@ -1530,6 +1530,7 @@ void BufferView::Pimpl::pasteClipboard(bool asPara)
|
|||||||
} else {
|
} else {
|
||||||
bv_->getLyXText()->insertStringAsLines(bv_, clip);
|
bv_->getLyXText()->insertStringAsLines(bv_, clip);
|
||||||
}
|
}
|
||||||
|
bv_->getLyXText()->clearSelection();
|
||||||
update(bv_->text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
|
update(bv_->text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
|
* BufferView_pimpl.C:
|
||||||
|
* BufferView2.C: clear selection on paste (bug 393)
|
||||||
|
|
||||||
2002-05-14 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
2002-05-14 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
* DepTable.C: include ctime
|
* DepTable.C: include ctime
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
|
* insettext.C: clear selection on paste (bug 393)
|
||||||
|
|
||||||
2002-05-11 Dekel Tsur <dekelts@tau.ac.il>
|
2002-05-11 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
* insettext.C (latex): Honor the moving_arg argument.
|
* insettext.C (latex): Honor the moving_arg argument.
|
||||||
|
@ -1379,6 +1379,9 @@ InsetText::localDispatch(BufferView * bv,
|
|||||||
} else {
|
} else {
|
||||||
lt->insertStringAsLines(bv, clip);
|
lt->insertStringAsLines(bv, clip);
|
||||||
}
|
}
|
||||||
|
// bug 393
|
||||||
|
lt->clearSelection();
|
||||||
|
|
||||||
updwhat = CURSOR_PAR;
|
updwhat = CURSOR_PAR;
|
||||||
updflag = true;
|
updflag = true;
|
||||||
break;
|
break;
|
||||||
@ -1396,6 +1399,8 @@ InsetText::localDispatch(BufferView * bv,
|
|||||||
setUndo(bv, Undo::INSERT,
|
setUndo(bv, Undo::INSERT,
|
||||||
lt->cursor.par(), lt->cursor.par()->next());
|
lt->cursor.par(), lt->cursor.par()->next());
|
||||||
lt->pasteSelection(bv);
|
lt->pasteSelection(bv);
|
||||||
|
// bug 393
|
||||||
|
lt->clearSelection();
|
||||||
updwhat = CURSOR_PAR;
|
updwhat = CURSOR_PAR;
|
||||||
updflag = true;
|
updflag = true;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
|
* math_cursor.C: clear selection on paste (bug 393)
|
||||||
|
|
||||||
2002-05-15 André Pönitz <poenitz@gmx.net>
|
2002-05-15 André Pönitz <poenitz@gmx.net>
|
||||||
|
|
||||||
* math_cursor.[Ch]: honor lyxrc setting for auto_delete_region
|
* math_cursor.[Ch]: honor lyxrc setting for auto_delete_region
|
||||||
|
@ -691,7 +691,7 @@ void MathCursor::selPaste()
|
|||||||
selClearOrDel();
|
selClearOrDel();
|
||||||
theSelection.paste(*this);
|
theSelection.paste(*this);
|
||||||
//theSelection.grab(*this);
|
//theSelection.grab(*this);
|
||||||
//selClear();
|
selClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user