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 ?

[EMAIL PROTECTED]:

case LFUN_CLIPBOARD_PASTE:
  cur.clearSelection();
  pasteClipboardText(cur, bv->buffer().errorList("Paste"),
    cmd.argument() == "paragraph");
    bv->buffer().errors("Paste");
  break;

Vincent

Reply via email to