void makeundo() { undos.add(blockcopy(sel)); pruneundos(undomegs<<20); };
void copy() { EDITSELMP; if(copybuf) free(copybuf); copybuf = blockcopy(sel); };
void makeundo() { undos.emplace_back(blockcopy(sel)); pruneundos(undomegs << 20); }