Skip to content

Commit

Permalink
remove one trailing newline in final modifyRange()
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Dec 2, 2024
1 parent 1103514 commit 622380e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rstudioapi.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ stream_selection_impl <- function(selection, context, pal, n_lines_orig, remaind
# unpadded version to remove unneeded newlines
rstudioapi::modifyRange(
selection$range,
paste0(output_lines, remainder),
string <- sub("\n$", "", paste0(output_lines, remainder)),
context$id
)

Expand Down

0 comments on commit 622380e

Please sign in to comment.