Reset caret size when inserting text over a selection

This commit is contained in:
Jean-Marc Lasgouttes 2020-10-17 20:29:16 +02:00
parent b940a81520
commit c286cad565

View File

@ -1959,8 +1959,10 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
// "auto_region_delete", which defaults to
// true (on).
if (lyxrc.auto_region_delete && cur.selection())
if (lyxrc.auto_region_delete && cur.selection()) {
cutSelection(cur, false);
cur.setCurrentFont();
}
cur.clearSelection();
for (char_type c : cmd.argument())