Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit f6083a3

Browse files
committed
Fix bug where brace annotations are shown on single line scopes
1 parent 733d01c commit f6083a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

4coder_fleury_brace.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ F4_Brace_RenderCloseBraceAnnotation(Application_Links *app, Buffer_ID buffer, Te
8484
{
8585
continue;
8686
}
87+
#else
88+
// NOTE(jack): Prevent brace annotations from printing on single line scopes.
89+
if (get_line_number_from_pos(app, buffer, range.start) == get_line_number_from_pos(app, buffer, range.end))
90+
{
91+
continue;
92+
}
8793
#endif
8894

8995
i64 line = get_line_number_from_pos(app, buffer, range.end);

0 commit comments

Comments
 (0)