Hey! I'm the original poster from the post you linked to. And hah, that's exactly my use case and how I found this one, it's because I pipe multi-line SQL queries into other functions like odbc::dbGetQuery() a lot.
Anyway, somebody else reported the issue on Github fairly recently, and I'm not 100% sure on this, but it sounds like a fix is in place for a post-1.4 release.
The issue: https://github.com/rstudio/rstudio/issues/8307
The fix: https://github.com/rstudio/rstudio/pull/8309