mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[poincare] Delete root layout if cursor left of the radicand.
Change-Id: I42331f06785680053fa3cc64a95296697f207845
This commit is contained in:
@@ -30,7 +30,15 @@ void NthRootLayout::backspaceAtCursor(ExpressionLayoutCursor * cursor) {
|
||||
&& cursor->position() == ExpressionLayoutCursor::Position::Right)
|
||||
{
|
||||
// Case: Right.
|
||||
// Delete the layout, keep the operand.
|
||||
// Delete the layout, keep the radicand.
|
||||
replaceWithAndMoveCursor(radicandLayout(), true, cursor);
|
||||
return;
|
||||
}
|
||||
if (cursor->pointedExpressionLayout() == radicandLayout()
|
||||
&& cursor->position() == ExpressionLayoutCursor::Position::Left)
|
||||
{
|
||||
// Case: Left of the radicand.
|
||||
// Delete the layout, keep the radicand.
|
||||
replaceWithAndMoveCursor(radicandLayout(), true, cursor);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user