summaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorPoliorcetics2023-05-23 10:33:01 +0000
committerGitHub2023-05-23 10:33:01 +0000
commit8e2660b5cc86266f90926aefe1470f48c801f8bc (patch)
tree783197560853e4ddd63d660b33bcc99790c3ea88 /helix-term/src/ui
parent6043c3c3dbef8c40bdd768bb03060b7e376b7aea (diff)
Update diagnostics correctly on LSP exit (#7111)
* chore: avoid format! call with argument when useless * feat: also clear diagnostics for unopened documents when exiting an LSP * feat: we already worked on `self.editor.diagnostics` no need to redo the checks
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/statusline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs
index 4aa64634..dbf5ac31 100644
--- a/helix-term/src/ui/statusline.rs
+++ b/helix-term/src/ui/statusline.rs
@@ -275,7 +275,7 @@ where
});
if warnings > 0 || errors > 0 {
- write(context, format!(" {} ", "W"), None);
+ write(context, " W ".into(), None);
}
if warnings > 0 {