lines in source window

It looks to me as if RStudio no longer remembers the number of lines selected in the source window; not only that, but over multiple invocations of RStudio, the number of lines shown shrinks. Has anyone else noticed this, and is there any way of fixing it? (It did not happen with versions of RStudio usable with, eg, R-3.2.4).