diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-25 14:44:02 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-25 14:44:02 +0200 |
| commit | b270e1409caa23f8333c3eafb48534cb42957f12 (patch) | |
| tree | 20d05fbaf5a3cbbacd3b114f531ca0cb68dc7762 /fluid/sourceview_panel.cxx | |
| parent | 8c03cb788422147b843af34c7884b36ee288da7a (diff) | |
FLUID: Adds hierarchical node search in header files.
Diffstat (limited to 'fluid/sourceview_panel.cxx')
| -rw-r--r-- | fluid/sourceview_panel.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/fluid/sourceview_panel.cxx b/fluid/sourceview_panel.cxx index 7c249e58c..79c034702 100644 --- a/fluid/sourceview_panel.cxx +++ b/fluid/sourceview_panel.cxx @@ -78,17 +78,23 @@ void update_sourceview_position() { } if (sv_header->visible_r()) { switch (sv_code_choice) { - case 2: // code: entire implementation block including children - case 3: // code1: all implementation code before the children - case 4: // code1: all implementation code before the children - pos0 = Fl_Type::current->header_start; - pos1 = Fl_Type::current->header_end; - break; case 0: // prolog: not yet (include statements) case 1: // static: callbacks, menu declarations pos0 = Fl_Type::current->header_static_start; pos1 = Fl_Type::current->header_static_end; break; + case 2: // code: entire implementation block including children + pos0 = Fl_Type::current->header1_start; + pos1 = Fl_Type::current->header2_end; + break; + case 3: // code1: all implementation code before the children + pos0 = Fl_Type::current->header1_start; + pos1 = Fl_Type::current->header1_end; + break; + case 4: // code1: all implementation code before the children + pos0 = Fl_Type::current->header2_start; + pos1 = Fl_Type::current->header2_end; + break; } if (pos0>=0) { if (pos1<pos0) |
