summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-08-31 03:08:15 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commitf82a551b98cec165ac91aae15ba656a811229fde (patch)
treee3b1aeb2173e6c07483ce41ac40ff460e3d2b1ad /helix-view/src/editor.rs
parent6cffc7f05d0ca983690b46300cc82933389172c8 (diff)
Rename doc save event names to past tense
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 27b4458f..fbd0b2b0 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1,6 +1,6 @@
use crate::{
clipboard::{get_clipboard_provider, ClipboardProvider},
- document::{DocumentSaveEventResult, Mode},
+ document::{DocumentSavedEventResult, Mode},
graphics::{CursorKind, Rect},
info::Info,
input::KeyEvent,
@@ -691,7 +691,7 @@ pub struct Editor {
#[derive(Debug)]
pub enum EditorEvent {
- DocumentSave(DocumentSaveEventResult),
+ DocumentSaved(DocumentSavedEventResult),
ConfigEvent(ConfigEvent),
LanguageServerMessage((usize, Call)),
DebuggerEvent(dap::Payload),
@@ -1317,7 +1317,7 @@ impl Editor {
biased;
Some(Some(event)) = saves.next() => {
- EditorEvent::DocumentSave(event)
+ EditorEvent::DocumentSaved(event)
}
Some(config_event) = self.config_events.1.recv() => {
EditorEvent::ConfigEvent(config_event)