summaryrefslogtreecommitdiff
path: root/lib/editorBuffer.ml
diff options
context:
space:
mode:
authorFederico Igne <undyamon@disroot.org>2024-01-12 14:15:07 +0100
committerFederico Igne <undyamon@disroot.org>2024-01-12 14:15:07 +0100
commit2f6150f7e549836df78d91d6cf42d4a75d310930 (patch)
tree6c222f6a0833410ff02eaaad785691ae2d75840e /lib/editorBuffer.ml
parentfd4fc4ce9ad45a25ca3e77a434306aa2476161bb (diff)
downloadsandy-2f6150f7e549836df78d91d6cf42d4a75d310930.tar.gz
sandy-2f6150f7e549836df78d91d6cf42d4a75d310930.zip
refactor: cursor movement function names to avoid clashes
Diffstat (limited to 'lib/editorBuffer.ml')
-rw-r--r--lib/editorBuffer.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/editorBuffer.ml b/lib/editorBuffer.ml
index 715855c..2e2b4b6 100644
--- a/lib/editorBuffer.ml
+++ b/lib/editorBuffer.ml
@@ -14,7 +14,7 @@ let empty =
14module Action = struct 14module Action = struct
15 let on_content f b = { b with content = Result.map ~f b.content } 15 let on_content f b = { b with content = Result.map ~f b.content }
16 16
17 let up, down, left, right = 17 let move_up, move_down, move_left, move_right =
18 let vertical f ?(n = 1) = 18 let vertical f ?(n = 1) =
19 on_content (fun z -> 19 on_content (fun z ->
20 let col = focus_or ~default:Zipper.empty z |> left_length in 20 let col = focus_or ~default:Zipper.empty z |> left_length in