Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop editor from re-orienting when running code and allowing scroll past end of document #9950

Open
4 tasks done
mattwarkentin opened this issue Oct 13, 2021 · 2 comments
Open
4 tasks done

Comments

@mattwarkentin
Copy link

@mattwarkentin mattwarkentin commented Oct 13, 2021

System details

RStudio Edition : Desktop
RStudio Version : 2021.12.0 Build 90
OS Version      : Mac OS Big Sure 11.6
R Version       : 4.0.5

Steps to reproduce the problem

Enable scrolling past the end of the document by Preferences > Code > Display > Allow scroll past end of document. Scroll past the end of the document, run the line of code, and note that the editor "jumps". I think this behaviour is fine if where the cursor is jumping to is not visible, but if it is visible, then it is annoying for the editor to be jumping around for no reason.

I scroll past the end of the document purposefully so the code I'm writing/running is at the top of my editor, and so it is moderately annoying that every time I run the code, the editor re-orients and puts my cursor back at the bottom of the editor space.

Describe the problem in detail

Note that in the video below, I am running the code and the jump is something RStudio is doing, it is not a cut in the video or something I've done manually.

Screen.Recording.2021-10-13.at.2.00.19.PM.mov

Describe the behavior you expected

Editor orientation shouldn't move if it doesn't need to.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@ronblum
Copy link
Contributor

@ronblum ronblum commented Oct 14, 2021

@mattwarkentin Thank you for raising this! I can reproduce this in

  • RStudio Desktop 2021.09.0+351 and 2021.12.0-daily+122 on MacOS 12 beta
  • RStudio Server 2021.09.0+351 on Ubuntu 20.04 via Safari on MacOS 12 beta

We'll review this as we continue development of RStudio.

@jzadra
Copy link

@jzadra jzadra commented Feb 23, 2022

+1 to this request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants