@b4n commented on this pull request.


>                               g_string_append_c(stats_str, ' ');
-                               g_string_append_printf(stats_str, "%d",
-                                       sci_get_style_at(doc->editor->sci, 
pos));
+                               g_string_append_printf(stats_str, "%d", 
base_style);
+                               if (base_style != style)
+                               {
+                                       gint sub_start = 
scintilla_send_message(doc->editor->sci, SCI_GETSUBSTYLESSTART, base_style, 0);
+
+                                       g_string_append_printf(stats_str, 
"+%d", style + 1 - sub_start);

I changed my mind and implemented `B.S`.  Reasoning is that it looks more 
similar than defining the style, and has " style-and-a-half vibe" rather than 
an odd addition.  But that's still quite arbitrary, feel free to suggest 
something even better :)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3794#discussion_r1536180145
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3794/review/[email protected]>

Reply via email to