aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-01 02:57:43 +0000
committerGitHub2020-10-01 02:57:43 +0000
commit1da0be0aa045a4acd0246d82bf6214f8ec651476 (patch)
treea6e1ef47c23453503d2728452b16050ae649f440 /helix-view/src/commands.rs
parent592c5b0af22cc719fc1513f71706dad326ba8081 (diff)
parent13800e4dd152b018b5242de9fbdd470b23bd9c4a (diff)
Merge pull request #1 from helix-editor/insertKeymapMove
moved insert keymap to keymap.rs
Diffstat (limited to 'helix-view/src/commands.rs')
-rw-r--r--helix-view/src/commands.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-view/src/commands.rs b/helix-view/src/commands.rs
index bdfa57ec..a3906b9b 100644
--- a/helix-view/src/commands.rs
+++ b/helix-view/src/commands.rs
@@ -280,6 +280,10 @@ pub fn insert_char(view: &mut View, c: char) {
// TODO: need to store into history if successful
}
+pub fn insert_newline(view: &mut View, _count: usize) {
+ insert_char(view, '\n');
+}
+
// TODO: handle indent-aware delete
pub fn delete_char_backward(view: &mut View, count: usize) {
let text = &view.state.doc.slice(..);