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

Clearing whitespace on save causes document to scroll up #50

Open
GoogleCodeExporter opened this issue Aug 12, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a new file in XCode.
2. Add enough code so that there is a scrollbar.
3. Add a line that has trailing whitespace.
4. Save the file, noting the position of the text.

What is the expected output? What do you see instead?

It clears the whitespace just fine, but after doing so, it scrolls the document 
up, causing me to 
loose my position.  The cursor does not change position.

What version of the product are you using? On what operating system?

GTM XCode Plugin 10.0.3 in XCode 3.2.2 on Mac OS X 10.6.3.

Original issue reported on code.google.com by [email protected] on 29 May 2010 at 5:50

@GoogleCodeExporter
Copy link
Author

So I think this might be an XCode bug. For example, open a document in XCode 
that has enough text to have a 
scroll bar and scroll down a bit.  Then, open the same document in another 
editor and edit one of the lines that 
is visible in XCode and save.  Then, when you switch back to the XCode 
document, it will scroll up.  

It would be nice if you could come up with a workaround, though.  I would 
attempt it, but I don't actually know 
Objective-C (I use XCode to edit Python :).

Original comment by [email protected] on 29 May 2010 at 6:06

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

1 participant