aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sc_editor.c4
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);
}