Initial visual mode
This commit is contained in:
parent
5e2e859413
commit
37c921f972
13 changed files with 621 additions and 113 deletions
|
@ -11,6 +11,7 @@ use workspace::Workspace;
|
|||
use crate::{
|
||||
normal::normal_motion,
|
||||
state::{Mode, Operator},
|
||||
visual::visual_motion,
|
||||
Vim,
|
||||
};
|
||||
|
||||
|
@ -110,6 +111,7 @@ fn motion(motion: Motion, cx: &mut MutableAppContext) {
|
|||
});
|
||||
match Vim::read(cx).state.mode {
|
||||
Mode::Normal => normal_motion(motion, cx),
|
||||
Mode::Visual => visual_motion(motion, cx),
|
||||
Mode::Insert => {
|
||||
// Shouldn't execute a motion in insert mode. Ignoring
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue