Shift+F7 show blocks in frame (not top of editor)
authorThomas White <taw@physics.org>
Thu, 22 Mar 2018 21:42:53 +0000 (22:42 +0100)
committerThomas White <taw@physics.org>
Thu, 22 Mar 2018 21:42:53 +0000 (22:42 +0100)
src/sc_editor.c

index 51b50a5..f5d8180 100644 (file)
@@ -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);
                }