This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241953 - Visual cursor position not updated when editor resized under line wrap
Summary: Visual cursor position not updated when editor resized under line wrap
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-16 18:56 UTC by ebakke
Modified: 2018-06-22 19:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ebakke 2014-02-16 18:56:57 UTC
If line wrap is enabled, and the editor window is resized, the text is re-wrapped correctly to the new width of the editor. However, the cursor ends up in weird places, still blinking.

To reproduce:
1) Go to Options/Preferences->Editor->Formatting, select "All Languages" and set "Line Wrap" to "After words". Click OK.
2) Create a new plain text file and open it in the editor. Type a couple of long lines (with some spaces in them)--they will correctly be broken when the line reaches the end of the editor window.
3) Now resize the editor window in the horizontal direction, back and forth a couple of times. Observe that while the text is re-broken to the new width, the cursor tends to end up in non-sensical places (it may seem as if its position is only updated if it needs to end up on a new physical line, but not if it needs to end up in a different column position). However, as soon as a character is typed or an arrow key is pressed, the cursor re-appears in the correct place.
Comment 1 Jiri Prox 2014-02-17 10:03:31 UTC
reproducible
Comment 2 Martin Balin 2016-07-07 07:30:21 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 3 ebakke 2016-07-07 17:25:23 UTC
Still reproducible on latest build; reopening.

Product Version: NetBeans IDE Dev (Build 201607070002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb)
Comment 4 ebakke 2018-06-22 19:35:20 UTC
This bug has been migrated to the JIRA issue https://issues.apache.org/jira/browse/NETBEANS-978 .