Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/annotations/diagnostics.rs')
| -rw-r--r-- | helix-view/src/annotations/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/annotations/diagnostics.rs b/helix-view/src/annotations/diagnostics.rs index dc141462..7802ca63 100644 --- a/helix-view/src/annotations/diagnostics.rs +++ b/helix-view/src/annotations/diagnostics.rs @@ -109,7 +109,7 @@ impl InlineDiagnosticsConfig { impl Default for InlineDiagnosticsConfig { fn default() -> Self { InlineDiagnosticsConfig { - cursor_line: DiagnosticFilter::Enable(Severity::Warning), + cursor_line: DiagnosticFilter::Disable, other_lines: DiagnosticFilter::Disable, min_diagnostic_width: 40, prefix_len: 1, @@ -186,7 +186,7 @@ impl<'a> InlineDiagnosticAccumulator<'a> { .doc .diagnostics .get(self.idx) - .is_none_or(|diag| diag.range.start != grapheme.char_idx) + .map_or(true, |diag| diag.range.start != grapheme.char_idx) { return false; } |