Fixed backspace when first char is pattern char but next is literal
This commit is contained in:
parent
10c9ea9554
commit
049c3a870a
|
@ -132,7 +132,7 @@ MaskEditTextView.prototype.onKeyPress = function(ch, key) {
|
||||||
this.text = this.text.substr(0, this.text.length - 1);
|
this.text = this.text.substr(0, this.text.length - 1);
|
||||||
this.clientBackspace();
|
this.clientBackspace();
|
||||||
} else {
|
} else {
|
||||||
while(this.patternArrayPos > 0) {
|
while(this.patternArrayPos >= 0) {
|
||||||
if(_.isRegExp(this.patternArray[this.patternArrayPos])) {
|
if(_.isRegExp(this.patternArray[this.patternArrayPos])) {
|
||||||
this.text = this.text.substr(0, this.text.length - 1);
|
this.text = this.text.substr(0, this.text.length - 1);
|
||||||
this.client.term.write(ansi.goto(this.position.row, this.getEndOfTextColumn() + 1));
|
this.client.term.write(ansi.goto(this.position.row, this.getEndOfTextColumn() + 1));
|
||||||
|
|
Loading…
Reference in New Issue