Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Nightly builds / Re: The 27 May 2026 build (13855) is out.
« Last post by eckard_klotz on Yesterday at 12:35:10 pm »
Hello Developers.

Unfortunately the folding margin is located next to the text inside the editor and thus, it happens very easily that you force a folding even you just want click at the first line position, what is very annoying.

While reviewing the current margin configuration in cbEditor.cpp, I noticed that Code::Blocks defines its own margin IDs:

Code
#define C_LINE_MARGIN      0
#define C_MARKER_MARGIN    1
#define C_CHANGEBAR_MARGIN 2
#define C_FOLDING_MARGIN   3


As far as I understand it, Scintilla (and wxScintilla) always render margins strictly in ascending ID order.
Because of this, the folding margin (ID 3) appears directly next to the text area in the editor. This placement makes it easy to accidentally trigger fold/unfold actions when clicking near column 1, especially on high‑resolution displays.

Other Scintilla‑based editors (SciTE, Geany, Notepad++) avoid this issue by placing the folding margin immediately to the right of the line‑number margin. This provides a natural buffer zone and significantly reduces accidental folding.

In Code::Blocks, the folding margin is configured here:

Code
control->SetMarginType(C_FOLDING_MARGIN, wxSCI_MARGIN_SYMBOL);
control->SetMarginWidth(C_FOLDING_MARGIN, foldingMarginBaseWidth);
control->SetMarginMask(C_FOLDING_MARGIN, ...);
control->SetMarginSensitive(C_FOLDING_MARGIN, 1);


Since all margin‑related logic consistently seems to use the symbolic constants (C_FOLDING_MARGIN, C_MARKER_MARGIN, etc.), adjusting the margin order is limited to changing the four #define values. No other code changes should be required, and no plugins or configuration files are affected.

Suggested improvement: 
Reassign the folding margin to a lower ID (e.g., 1), so the margin order becomes:

Line numbers → Folding → Marker → Changebar → Text


This can simply be changed while the definition of the preprocessor constants like this:

Code
#define C_LINE_MARGIN      0
#define C_FOLDING_MARGIN   1
#define C_MARKER_MARGIN    2
#define C_CHANGEBAR_MARGIN 3


I think this small, isolated change would align Code::Blocks with common Scintilla practice and improve usability without introducing new settings or breaking existing functionality.


Please take a look to this and thank you in advance.

Best regards,
                   Eckard Klotz.
2
Thanks :
992
1262
1265
1362
1433
1440
3
Post the ticket numbers.
4
No,I wanted to make room for my unresolved tickets that had become useless.
5
Do you want to close all your open NextNightly tickets (except the last one)?

EDIT: The only options are "won't fix", "invalid", "applied", "duplicated" and "fixed".
6
Plugins development / Re: compilation error clangd_client svn 13911
« Last post by christo on July 17, 2026, 05:05:01 pm »
Thank you for reporting, will fix in two hours.

Edit: Fixed in r13912 , thank you @blauzahn
7
General (but related to Code::Blocks) / Delete a ticket on 'CodeBlocks/Tickets'
« Last post by LETARTARE on July 17, 2026, 04:11:07 pm »
I can not find how to remove my old tickets that have become obsolete and not taken into account on the site:
https://sourceforge.net/p/codeblocks/tickets/milestone/Next_Nightly/
8
Plugins development / compilation error clangd_client svn 13911
« Last post by blauzahn on July 17, 2026, 06:52:08 am »
parser.cpp must include

Code
#include <wx/choicdlg.h>

Observed on Linux.

Thanks in advance.
9
General (but related to Code::Blocks) / Re: Compilation error using wxWidgets 3.3.3
« Last post by gd_on on July 16, 2026, 07:46:54 pm »
Looks OK now. Thanks all. Of course, still needs further tests, but the debug alert mentionned above has disapeared.
10
Should be fixed in r13909, thanks for reporting.
Pages: [1] 2 3 4 5 6 ... 10