mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
fix random panic found while testing
This commit is contained in:
parent
6c2b4ce26e
commit
6336ab43b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user