Bug 522150 - Unfold button on single-line nested namespaces does not work
Summary: Unfold button on single-line nested namespaces does not work
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 9.2.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-11 10:42 EDT by Paweł Kubrak CLA
Modified: 2020-09-04 15:24 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Kubrak CLA 2017-09-11 10:42:10 EDT
To reproduce:
1. Open CDT
2. Open new file
3. Put:

#pragma once

namespace A { namespace B { namespace C {

}}}

4. Fold document using ctrl+shift+numpad divide
5. Click unfold button "(+)" on namespace line.

Actual results:
Nothing happens

Expected Results:
Something (single block / even better whole line) unfolds
Comment 1 Nathan Ridge CLA 2017-09-11 18:37:56 EDT
A related issue is that if you fold the namespaces by clicking on the (-) button next to the line, they get folded (and, unlike when folding with Ctrl+Shift+NumpadDivide, you can unfold them), but the button remains a (-) instead of changing to a (+).

My guess is that Eclipse is confused by having multiple folding regions starting on the same line.