6 Oct 00:38
Pasting over a selection
From: Vincent van Ravesteijn <V.F.vanRavesteijn@...>
Subject: Pasting over a selection
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-05 22:40:28 GMT
Subject: Pasting over a selection
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-05 22:40:28 GMT
If you make a selection and paste something, the selection will be
replaced in case of normal paste, but the selection will be retained in
the case of paste special (clipboard-paste).
Does anyone know why there is the cur.clearSelection() in the code below
instead of cap::replaceSelection(cur) as for LFUN_PASTE ?
Text3.cpp <at> 1072--1077:
case LFUN_CLIPBOARD_PASTE:
cur.clearSelection();
pasteClipboardText(cur, bv->buffer().errorList("Paste"),
cmd.argument() == "paragraph");
bv->buffer().errors("Paste");
break;
Vincent
Why not create a Cursor::replaceSelection() instead?
Abdel.
RSS Feed