aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
diff options
context:
space:
mode:
authorGokul Soumya2021-12-18 02:55:40 +0000
committerGokul Soumya2021-12-18 02:56:11 +0000
commit016640f4fb6f620df13a2cab15e749d623197a51 (patch)
tree214281b9dc0843ac455bc20a636169858cce2ca2 /helix-view/src/document.rs
parent058796c18e786309322731ff68b15a0f3901b60b (diff)
Remove ui.cursor.primary and hashmap lookups
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r--helix-view/src/document.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 76b19a07..01975452 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -29,9 +29,9 @@ pub const SCRATCH_BUFFER_NAME: &str = "[scratch]";
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum Mode {
- Normal,
- Select,
- Insert,
+ Normal = 0,
+ Select = 1,
+ Insert = 2,
}
impl Display for Mode {