take part length into account as well
This commit is contained in:
parent
9d6a818591
commit
8c0b8ff618
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ export class PillCandidatePart extends PlainPart {
|
|||
}
|
||||
|
||||
acceptsInsertion(chr, i) {
|
||||
if (i === 0) {
|
||||
if ((this.text.length + i) === 0) {
|
||||
return true;
|
||||
} else {
|
||||
return super.acceptsInsertion(chr, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue