diff options
author | Federico Igne <undyamon@disroot.org> | 2024-01-26 20:33:40 +0100 |
---|---|---|
committer | Federico Igne <undyamon@disroot.org> | 2024-01-26 20:33:40 +0100 |
commit | 477dd3d2a9f452d06912f9f56c6eee831a15aead (patch) | |
tree | 9b98b2914daa787219915812c3dab7b5eeb5b011 | |
parent | 855aa94f49ae2a8cc3c496365197e496bcebf7ce (diff) | |
download | sandy-477dd3d2a9f452d06912f9f56c6eee831a15aead.tar.gz sandy-477dd3d2a9f452d06912f9f56c6eee831a15aead.zip |
fix: make '[J]oin' join at least 2 lines
-rw-r--r-- | lib/editor.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/editor.ml b/lib/editor.ml index 8241c58..3368966 100644 --- a/lib/editor.ml +++ b/lib/editor.ml | |||
@@ -401,8 +401,8 @@ let handle_normal_command c = | |||
401 | get_register r >>= paste | 401 | get_register r >>= paste |
402 | (* Join *) | 402 | (* Join *) |
403 | | Shortcut (_, n, Join) -> | 403 | | Shortcut (_, n, Join) -> |
404 | let n = Option.(value ~default:1 n) in | 404 | let n = Option.(value ~default:2 n) in |
405 | Buffer.Action.join_lines ~n |> on_focused_buffer_or_new | 405 | Buffer.Action.join_lines ~n |> on_focused_buffer |
406 | (* Quit *) | 406 | (* Quit *) |
407 | | Simple (Ctrl 'Q') -> quit 0 | 407 | | Simple (Ctrl 'Q') -> quit 0 |
408 | (* Misc *) | 408 | (* Misc *) |