From f46d6661a8f33730c17cceb7e2885e789d6123d8 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Sun, 28 Jan 2024 01:30:55 +0100 Subject: feat: add goto (G key) command --- lib/editorBuffer.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/editorBuffer.ml') diff --git a/lib/editorBuffer.ml b/lib/editorBuffer.ml index 1f363ef..959c04a 100644 --- a/lib/editorBuffer.ml +++ b/lib/editorBuffer.ml @@ -145,7 +145,7 @@ module Action = struct in (horizontal left, horizontal right) - let goto r c = + let goto ~r ?(c = 0) = let change_content = Zipper.(goto r &> map_focus (goto c)) |> on_content and change_rendered = Zipper.goto r |> on_rendered in change_content *> change_rendered -- cgit v1.2.3