Skip to content

Commit

Permalink
Fixes #45629: Try to align textarea's cursor with our cursor by scrol…
Browse files Browse the repository at this point in the history
…ling the textarea's content
  • Loading branch information
alexdima committed Oct 29, 2021
1 parent 926dcb8 commit 6172685
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/editor/browser/controller/textAreaHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@ export class TextAreaHandler extends ViewPart {
top, left,
canUseZeroSizeTextarea ? 0 : 1, this._lineHeight
);
// 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;
return;
}

Expand Down

0 comments on commit 6172685

Please sign in to comment.