Ok, totally got this working like v16 now.
Need to modify two functions in clipbd.e. I've only modified 3 lines total.
void _autoclipboard()
{
if (!select_active2()) {
return;
}
if (def_autoclipboard) {
#if 0
// This code can be slow.
//If there is a external clipboard
if (!_isclipboard_internal()) {
// Make a copy of it internal
_cvtsysclipboard();
}
#endif
int old_markid=_duplicate_selection('');
int new_markid=_duplicate_selection();
_show_selection(new_markid);
_copy_to_clipboard('',!__UNIX__); //MODIFIED
_free_selection(new_markid);
_show_selection(old_markid);
_lastcbisauto=1;
}
}
void _cvtautoclipboard()
{
if (_lastcbisauto) {
//say('_cvtautoclipboard:');
_str cb_format=_clipboard_format(VSCF_VSTEXTINFO,true); //MODIFIED
_str pid,cbtype,info;
parse cb_format with 'pid='pid cbtype info;
if (getpid()==pid) {
//say('_cvtautoclipboard: same pid');
_cvtsysclipboard2(0,cbtype,info,false,true); //MODIFIED
}
}
}
Given how few changes this took, I don't think I should change the built-ins.