[geany/geany-plugins] 186d3f: debugger: Fix marker for current frame

Colomban Wendling git-noreply at xxxxx
Sun Feb 7 13:55:31 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 07 Feb 2016 13:55:31 UTC
Commit:      186d3fa45dbc5d0e1a93811e3443344c928eb326
             https://github.com/geany/geany-plugins/commit/186d3fa45dbc5d0e1a93811e3443344c928eb326

Log Message:
-----------
debugger: Fix marker for current frame

Display the correct marker for the current frame when there is several
frames at the same location (e.g. from recursion).

As Scintilla markers are drawn in their ID order, the marker one wants
to see "on top" should have the highest ID.  So, make the current
frame marker (M_CI_ARROW) have a higher ID than the generic frame one
(M_FRAME) so if both are set on the same line the current frame one is
the one on top (e.g. visible, as they have the exact same shape).


Modified Paths:
--------------
    debugger/src/markers.c

Modified: debugger/src/markers.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -46,9 +46,9 @@ enum
 	M_BP_ENABLED		= M_FIRST,
 	M_BP_DISABLED,
 	M_BP_CONDITIONAL,
+	M_FRAME,
 	M_CI_BACKGROUND,
-	M_CI_ARROW,
-	M_FRAME
+	M_CI_ARROW
 };
 
 #define MARKER_PRESENT(mask, marker) (mask && (0x01 << marker))



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list