fix: feedback

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
Chapman Pendery
2023-12-05 14:45:19 -08:00
committed by GitHub
parent b061434c6f
commit 4da18252cd
@@ -416,7 +416,8 @@ export class SuggestAddon extends Disposable implements ITerminalAddon, ISuggest
if (data === '\x7f') {
if (this._additionalInput && this._additionalInput.length > 0 && this._cursorIndexDelta > 0) {
handled = true;
this._additionalInput = this._additionalInput.substring(0, this._cursorIndexDelta - 1) + this._additionalInput.substring(this._cursorIndexDelta--);
this._additionalInput = this._additionalInput.substring(0, this._cursorIndexDelta - 1) + this._additionalInput.substring(this._cursorIndexDelta);
this._cursorIndexDelta--
handledCursorDelta--;
}
}