From 0c0c2c71034e264204a2ce6d4fd7a17ddbc2245f Mon Sep 17 00:00:00 2001 From: Jan Hrastnik Date: Thu, 8 Oct 2020 00:02:32 +0200 Subject: modified editor.render() to prepare for command mode rendering --- helix-view/src/commands.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'helix-view/src/commands.rs') diff --git a/helix-view/src/commands.rs b/helix-view/src/commands.rs index 09c6b2fc..0e3f7ce8 100644 --- a/helix-view/src/commands.rs +++ b/helix-view/src/commands.rs @@ -304,6 +304,10 @@ pub fn append_mode(view: &mut View, _count: usize) { }) } +pub fn command_mode(view: &mut View, _count: usize) { + view.state.mode = Mode::Command; +} + // TODO: I, A, o and O can share a lot of the primitives. // calculate line numbers for each selection range -- cgit v1.2.3-70-g09d2