[LyX/master] Reset caret size when inserting text over a selection
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sat Oct 17 18:01:52 UTC 2020
commit c286cad565e2273339f21d8c17fe07942497d977
Author: Jean-Marc Lasgouttes <lasgouttes at 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())
More information about the lyx-cvs
mailing list