zantoku / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

Clearing whitespace on save causes document to scroll up #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 asmeurer@gmail.com on 29 May 2010 at 5:50

GoogleCodeExporter commented 9 years ago
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 asmeurer@gmail.com on 29 May 2010 at 6:06