Try to get textarea's cursor to line up with our cursor horizontally (improves #136097)

This commit is contained in:
Alex Dima 2021-11-29 22:51:14 +01:00
parent 0933acd4cc
commit 9fc5b78314
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9

View file

@ -581,7 +581,7 @@ export class TextAreaHandler extends ViewPart {
);
// In case the textarea contains a word, we're going to try to align the textarea's cursor
// with our cursor by scrolling the textarea as much as possible
this.textArea.domNode.scrollLeft = 1000000;
this.textArea.domNode.scrollLeft = this._primaryCursorVisibleRange.left;
return;
}