From 1103514973168eb3de9ece22c95f97b46821878e Mon Sep 17 00:00:00 2001 From: simonpcouch Date: Wed, 27 Nov 2024 12:22:16 -0600 Subject: [PATCH] remove unnecessary curson position change also, makes it easier to "follow along" with the pal as it writes out longer responses --- R/rstudioapi.R | 4 ---- 1 file changed, 4 deletions(-) diff --git a/R/rstudioapi.R b/R/rstudioapi.R index 7ff5da9..06461ff 100644 --- a/R/rstudioapi.R +++ b/R/rstudioapi.R @@ -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