Fixup 7d965319: reset cursor font at a finer level

This commit is contained in:
Jean-Marc Lasgouttes 2020-10-01 14:19:09 +02:00
parent 7f1b1729b4
commit a2b754b10b

View File

@ -131,7 +131,6 @@ static void moveCursor(Cursor & cur, bool selecting)
{
if (selecting || cur.mark())
cur.setSelection();
cur.setCurrentFont();
}
@ -1227,6 +1226,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
cur.resetAnchor();
} else {
cutSelection(cur, false);
cur.setCurrentFont();
singleParUpdate = false;
}
moveCursor(cur, false);