// provide it with two different cursors.
Cursor dummy = cur;
dummy.pos() = dummy.pit() = 0;
- if (cur.bv().checkDepm(dummy, cur)) {
+ if (cur.bv().checkDepm(dummy, cur))
cur.forceBufferUpdate();
- // DEPM may have requested a screen update
- cur.screenUpdateFlags(
- cur.screenUpdate() | dummy.screenUpdate());
- }
}
}
break;
Cursor dummy = cur;
dummy.pos() = cur.lastpos();
dummy.pit() = cur.lastpit();
- if (cur.bv().checkDepm(dummy, cur)) {
+ if (cur.bv().checkDepm(dummy, cur))
cur.forceBufferUpdate();
- // DEPM may have requested a screen update
- cur.screenUpdateFlags(
- cur.screenUpdate() | dummy.screenUpdate());
- }
}
}
break;
// provide it with two different cursors.
Cursor dummy = cur;
dummy.pos() = dummy.pit() = 0;
- if (cur.bv().checkDepm(dummy, cur)) {
+ if (cur.bv().checkDepm(dummy, cur))
cur.forceBufferUpdate();
- // DEPM may have requested a screen update
- cur.screenUpdateFlags(
- cur.screenUpdate() | dummy.screenUpdate());
- }
}
}
break;
Cursor dummy = cur;
dummy.pos() = cur.lastpos();
dummy.pit() = cur.lastpit();
- if (cur.bv().checkDepm(dummy, cur)) {
+ if (cur.bv().checkDepm(dummy, cur))
cur.forceBufferUpdate();
- // DEPM may have requested a screen update
- cur.screenUpdateFlags(
- cur.screenUpdate() | dummy.screenUpdate());
- }
}
}
break;
// without argument?
string const arg = to_utf8(cmd.argument());
if (arg.empty()) {
+ bool tryGraphics = true;
if (theClipboard().isInternal())
pasteFromStack(cur, bv->buffer().errorList("Paste"), 0);
- else if (theClipboard().hasGraphicsContents()
- && !theClipboard().hasTextContents())
+ else if (theClipboard().hasTextContents()) {
+ if (pasteClipboardText(cur, bv->buffer().errorList("Paste"),
+ true, Clipboard::AnyTextType))
+ tryGraphics = false;
+ }
+ if (tryGraphics && theClipboard().hasGraphicsContents())
pasteClipboardGraphics(cur, bv->buffer().errorList("Paste"));
- else
- pasteClipboardText(cur, bv->buffer().errorList("Paste"), true);
} else if (isStrUnsignedInt(arg)) {
// we have a numerical argument
pasteFromStack(cur, bv->buffer().errorList("Paste"),