Merge pull request #3026 from matrix-org/bwindels/tabcompletionfixup

Fixup for tab completion: take part length into account as well
pull/21833/head
Bruno Windels 2019-05-24 14:24:25 +00:00 committed by GitHub
commit cf932e0eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);