Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 481873

Summary: [word wrap] No line ruler number repaint on text editing with disabled "quick diff"
Product: [Eclipse Project] Platform Reporter: Andrey Loskutov <loskutov>
Component: TextAssignee: Andrey Loskutov <loskutov>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, Lars.Vogel
Version: 4.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug
Bug Depends on: 35779    
Bug Blocks:    

Description Andrey Loskutov CLA 2015-11-10 15:15:56 EST
Start editor, toggle "word wrap" and enter 2 lines of text. The first line must be long so that it can be wrapped. Now place the cursor in the middle of this text and hit "enter".

A new line is created (one can toggle "show whitespace characters" to see the new line sign) but line ruler doesn't paint the number "2" on the left side next to the beginning of the new line - the place on the left side is empty, and the next line still shows "2" instead of "3". The right line numbers are painted only after scrolling in the editor or changing the editor size.

Same (with the opposite effect) happens if one removes a line break between lines. There are "ghost" line numbers shown at the place where deleted line breaks were painted.
Comment 1 Andrey Loskutov CLA 2015-11-10 17:46:55 EST
Funny, started the debugger to see what is wrong and ... I cannot reproduce this issue anymore. Started the original I-build again and ... still no problems. I don't know what it was or how one can reproduce it, but I swear I've seen it...

OK, I found the trigger: to prepare the screenshot I've did following:
File -> New -> Untitled Text File -> paste 4 long lines (300 words from http://www.loremipsum.de) -> Preferences -> disable spell checking.

Now and only now one can add/remove line breaks and the line ruler doesn't repaint itself. Saving the file in any project "fixes" the repaint issue -> as soon as the file is saved to disk and is not called "Untitled" anymore, line modifications starts to be noticed by the line ruler. 

?!?!

OK, the root cause is the "enable quick diff" option which works for persisted files but of course is not enabled for in-memory "Untitled" documents.

Switching "quick diff" off "breaks" the line ruler painting if word wrap is enabled.
Comment 2 Dani Megert CLA 2015-12-08 10:45:28 EST
Related to bug 483866?
Comment 3 Eclipse Genie CLA 2020-06-20 15:53:04 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.