Fixed backspace when first char is pattern char but next is literal

This commit is contained in:
Nathan Byrd 2022-01-28 11:26:27 -06:00
parent 10c9ea9554
commit 049c3a870a
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ MaskEditTextView.prototype.onKeyPress = function(ch, key) {
this.text = this.text.substr(0, this.text.length - 1);
this.clientBackspace();
} else {
while(this.patternArrayPos > 0) {
while(this.patternArrayPos >= 0) {
if(_.isRegExp(this.patternArray[this.patternArrayPos])) {
this.text = this.text.substr(0, this.text.length - 1);
this.client.term.write(ansi.goto(this.position.row, this.getEndOfTextColumn() + 1));