Skip to content

Commit

Permalink
fixed bug where pasting a bunch of content didn't put the cursor in t…
Browse files Browse the repository at this point in the history
…he viewport
  • Loading branch information
joetannenbaum committed Jan 31, 2024
1 parent c16cfb7 commit 4a047ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextareaPrompt.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function adjustVisibleWindow(): void

$currentLineIndex = $this->currentLineIndex();

if ($this->firstVisible + $this->scroll <= $currentLineIndex) {
while ($this->firstVisible + $this->scroll <= $currentLineIndex) {
$this->firstVisible++;
}

Expand Down

0 comments on commit 4a047ca

Please sign in to comment.