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

Summary: Current caret position jumps out of view after automatic code folding
Product: editor Reporter: olehoppe <olehoppe>
Component: Code foldingAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: kuz
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.