diff options
author | Gokul Soumya | 2021-12-18 02:55:40 +0000 |
---|---|---|
committer | Gokul Soumya | 2021-12-18 02:56:11 +0000 |
commit | 016640f4fb6f620df13a2cab15e749d623197a51 (patch) | |
tree | 214281b9dc0843ac455bc20a636169858cce2ca2 /helix-view/src/document.rs | |
parent | 058796c18e786309322731ff68b15a0f3901b60b (diff) |
Remove ui.cursor.primary and hashmap lookups
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r-- | helix-view/src/document.rs | 6 |
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 { |