backspace fixed

This commit is contained in:
Adam D. Ruppe 2017-04-02 14:08:00 -04:00
parent 95c4dfb17c
commit 83c5a188fe
1 changed files with 2 additions and 0 deletions

View File

@ -11019,6 +11019,8 @@ mixin template ExperimentalTextComponent() {
return; return;
if(carat.offset == 0) { if(carat.offset == 0) {
auto prev = e.getPreviousInlineElement(); auto prev = e.getPreviousInlineElement();
if(prev is null)
return;
auto newOffset = prev.text.length; auto newOffset = prev.text.length;
tryMerge(prev, e); tryMerge(prev, e);
carat.inlineElement = prev; carat.inlineElement = prev;