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 269123 - Current caret position jumps out of view after automatic code folding
Summary: Current caret position jumps out of view after automatic code folding
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-25 20:55 UTC by olehoppe
Modified: 2017-04-12 13:04 UTC (History)
1 user (show)

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 olehoppe 2016-11-25 20:55:22 UTC
When searching in files and double-clicking on a line in Search Results window, file is being opened and caret correctly highlights the search term. But if that file contains e.g. long comments above the caret position and settings ask for automatically folding these comments up when opening a file, caret position jumps out of the viewport and one has to press a cursor key to get it back in view. Similar when opening file from Find Usages results window. (This was not so in 8.1.) Thanks a lot for looking into this.
Comment 1 kuz 2017-04-12 13:04:25 UTC
I'm also having this issue when navigating to a specific line of a file using an link in another window. 

It is quite visible in the editor window when the caret position gets set to a line and suddenly disappears when automatic code folding of comments happens.

Works perfectly in 8.0.2(didn't check in 8.1) but not in 8.2.

Please look into this.