Skip to content

Commit

Permalink
remove unnecessary curson position change
Browse files Browse the repository at this point in the history
also, makes it easier to "follow along" with the pal as it writes out longer responses
  • Loading branch information
simonpcouch committed Nov 27, 2024
1 parent 2e4863c commit 1103514
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions R/rstudioapi.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ stream_selection_impl <- function(selection, context, pal, n_lines_orig, remaind
if (n_selection < n_lines_res) {
selection$range$end[["row"]] <- selection$range$start[["row"]] + n_lines_res
}

# `modifyRange()` changes the cursor position to the end of the
# range, so manually override
rstudioapi::setCursorPosition(selection$range$start)
})

# once the generator is finished, modify the range with the
Expand Down

0 comments on commit 1103514

Please sign in to comment.