aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-04 06:40:49 +0000
committerGitHub2020-10-04 06:40:49 +0000
commit197651eb309e88ba120dcb7a769acac6091483b1 (patch)
tree46fc50e8d3fb66182e05c4f81acf9c1f9fca479f /helix-view/src/commands.rs
parent7b4a4f6a3cec10f7b2d4a406cc68b5929b36b0a1 (diff)
parentdc11124df54cd4f03d5bfa814e33262643483e87 (diff)
Merge pull request #2 from helix-editor/tab-implementation
added tab to insert mode
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 1fb9c90e..6dd1101c 100644
--- a/helix-view/src/commands.rs
+++ b/helix-view/src/commands.rs
@@ -301,6 +301,10 @@ pub fn insert_char(view: &mut View, c: char) {
// TODO: need to store into history if successful
}
+pub fn insert_tab(view: &mut View, _count: usize) {
+ insert_char(view, '\t');
+}
+
pub fn insert_newline(view: &mut View, _count: usize) {
insert_char(view, '\n');
}