commit c286cad565e2273339f21d8c17fe07942497d977 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Oct 17 20:29:16 2020 +0200
Reset caret size when inserting text over a selection --- src/Text3.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 10400f9..1d3e44d 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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()) -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs