mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 07:44:33 +01:00
fix: feedback
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user