diff options
author | Thomas White <taw@physics.org> | 2018-03-22 22:42:53 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-03-22 22:42:53 +0100 |
commit | a3efc6330845e29c2a65853b1547c309a19198ab (patch) | |
tree | 4110dce47f0631091762d533aef6a77ca9fe0c64 /src | |
parent | 2571a22c3da3102bbcaee0ab60d290960048bf33 (diff) |
Shift+F7 show blocks in frame (not top of editor)
Diffstat (limited to 'src')
-rw-r--r-- | src/sc_editor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index 51b50a5..f5d8180 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -1581,7 +1581,9 @@ static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, if ( event->state & GDK_CONTROL_MASK ) { debug_paragraphs(e); } else if ( event->state & GDK_SHIFT_MASK ) { - show_sc_blocks(e->scblocks); + if ( e->cursor_frame != NULL ) { + show_sc_blocks(e->cursor_frame->scblocks); + } } else { open_debugger(e->cursor_frame); } |