Skip to content

Commit

Permalink
debugger: Fix marker for current frame
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
b4n committed Feb 7, 2016
1 parent 4940e36 commit 186d3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debugger/src/markers.c
Expand Up @@ -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))
Expand Down

0 comments on commit 186d3fa

Please sign in to comment.