mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Fix bug #8140: Crash with math macros and input completion
When clicking away in the same math inset after hitting '\', the
cursor may be broken and all of its instances have to be fixed.
(cherry picked from commit 9825621798
)
This commit is contained in:
parent
4296e47d28
commit
124bc762a7
@ -2171,8 +2171,8 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
|
||||
|
||||
// Notify left insets
|
||||
if (cur != old) {
|
||||
old.fixIfBroken();
|
||||
bool badcursor = notifyCursorLeavesOrEnters(old, cur);
|
||||
bool badcursor = old.fixIfBroken() | cur.fixIfBroken()
|
||||
| notifyCursorLeavesOrEnters(old, cur);
|
||||
if (badcursor)
|
||||
cursor().fixIfBroken();
|
||||
}
|
||||
|
@ -162,6 +162,9 @@ What's new
|
||||
|
||||
- Fix the coloring of Quotation marks with change tracking (bug 7653).
|
||||
|
||||
- Fix crash when clicking away in the same math inset just after hitting '\'
|
||||
(bug 8140).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user