I think this is a bug. Here's how to reproduce:
- Copy and paste this code into a new R script
a <- list(
a = 1, b = 2, c = 3
)
b <- list(
a = 1, b = 2, c = 3
)
c <- list(
a = 1, b = 2, c = 3
)
-
cmd + a to select all, then cmd + i to indent. This is what I do a lot and this is what seems to cause the issue.