create chunk with shortcut (ctrl alt i) and then paste (ctrl v) causes Rstudio to freeze

Ok, hopefully this is a more reliable way to reproduce the bug for you:

  • Create a new .Rmd from the menu (I use the little icon, but both 'work')
  • Click OK (all default)
  • Go to line 29
  • press ctrl+alt+i
  • type:
blah %>%
  mutate(blah = blah) %>%
  filter(x != y)
  • select with mouse, press ctrl + c

  • click line 35

  • press ctrl+alt+i

  • press ctrl + v.

Cursor still flickers, but can no longer do anything in R.

This breaks Rstudio around ~ 75% of time. If it doesn't break, then press ctrl + alt + i, and paste again... eventually it breaks for me.