vim: Empty pane improvements (#13624)

Release Notes:

- vim: Fixed `:` in empty diagnostics view
- vim: Fixed `g/` outside of an editor
This commit is contained in:
Conrad Irwin 2024-06-27 21:54:03 -06:00 committed by GitHub
parent 97159bd88d
commit 363ac6bc96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 256 additions and 64 deletions

View file

@ -102,6 +102,9 @@ impl Render for ProjectDiagnosticsEditor {
div()
.track_focus(&self.focus_handle)
.when(self.path_states.is_empty(), |el| {
el.key_context("EmptyPane")
})
.size_full()
.on_action(cx.listener(Self::toggle_warnings))
.child(child)