Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions CSharpMath.Editor/Keyboards/MathKeyboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,14 @@ void VisualizePlaceholders(IMathList mathList) {
}
}
VisualizePlaceholders(MathList);
if(MathList.AtomAt(_insertionIndex) is IMathAtom atom && atom.AtomType is MathAtomType.Placeholder)
if (MathList.AtomAt(_insertionIndex) is IMathAtom atom && atom.AtomType is MathAtomType.Placeholder) {
atom.Nucleus = Symbols.BlackSquare;
/* Find the insert point rect and create a caretView to draw the caret at this position. */

Caret = null;
} else {
/* Find the insert point rect and create a caretView to draw the caret at this position. */
Caret = new CaretHandle(Font.PointSize);
}
// Check that we were returned a valid position before displaying a caret there.
Caret = new CaretHandle(Font.PointSize);
RecreateDisplayFromMathList();
RedrawRequested?.Invoke(this, EventArgs.Empty);
}
Expand Down