diff options
author | Ivan Tham | 2021-07-17 14:47:08 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-03 00:32:21 +0000 |
commit | 821565e4efe84f97e08327138cbe8f09aba934e0 (patch) | |
tree | eaf80ea3d12906db4805dfe27e30a51250014243 /helix-term/src/commands.rs | |
parent | adb5d842ba3ff7e539a77de54a0a8db3018a3844 (diff) |
Add ctrl-z to suspend
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index cc2c2cca..5cbab34f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -291,7 +291,8 @@ impl Command { surround_replace, "Surround replace", surround_delete, "Surround delete", select_textobject_around, "Select around object", - select_textobject_inner, "Select inside object" + select_textobject_inner, "Select inside object", + suspend, "Suspend" ); } @@ -3894,3 +3895,8 @@ fn surround_delete(cx: &mut Context) { } }) } + +fn suspend(_cx: &mut Context) { + #[cfg(not(windows))] + signal_hook::low_level::raise(signal_hook::consts::signal::SIGTSTP).unwrap(); +} |