diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs index 36f719f79..bf04244df 100644 --- a/helix-view/src/gutter.rs +++ b/helix-view/src/gutter.rs @@ -287,7 +287,7 @@ fn execution_pause_indicator<'doc>( ) -> GutterFn<'doc> { let style = theme.get("ui.debug.active"); let current_stack_frame = editor.current_stack_frame(); - let frame_line = current_stack_frame.map(|frame| frame.line - 1); + let frame_line = current_stack_frame.and_then(|frame| frame.line.checked_sub(1)); let frame_source_path = current_stack_frame.map(|frame| { frame .source