Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/editor.rs')
| -rw-r--r-- | helix-term/src/ui/editor.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index d2f4d146..6775b5b2 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -80,6 +80,7 @@ impl EditorView { let theme = &editor.theme; // DAP: Highlight current stack frame position + #[cfg(feature = "dap")] let stack_frame = editor.debugger.as_ref().and_then(|debugger| { if let (Some(frame), Some(thread_id)) = (debugger.active_frame, debugger.thread_id) { debugger @@ -90,6 +91,7 @@ impl EditorView { None } }); + #[cfg(feature = "dap")] if let Some(frame) = stack_frame { if doc.path().is_some() && frame @@ -957,6 +959,7 @@ impl EditorView { ) -> EventResult { let config = cxt.editor.config(); match event { + #[cfg(feature = "dap")] MouseEvent { kind: MouseEventKind::Down(MouseButton::Left), row, @@ -1084,6 +1087,7 @@ impl EditorView { EventResult::Consumed(None) } + #[cfg(feature = "dap")] MouseEvent { kind: MouseEventKind::Up(MouseButton::Right), row, |