Up arrow only returns final line of multiline command

In previous versions of RStudio, pressing the up arrow would return the last, entire multiline command sent to the console.

Now (for instance, in 2024.11.0 Build 302) the up arrow only returns the final line.

for instance, if I usedCTRL+ENTER after highlighting all the lines in this script

library(tidyverse)

mtcars %>% 
  ggplot(
    aes(
      wt, mpg
    )
  ) +
  geom_point()

and then use the up arrow, I would like the entire last command to be returned to the console, but instead, it only returns

geom_point()

how do I get the old behavior back?

1 Like