From c7c271e90309334f83b0a5c87bdd5ea6978a9ea6 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 26 Nov 2025 23:16:50 +0100 Subject: [PATCH] refactor: CurSel.to_selection is internal --- src/tui/editor.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 83d2832..fd417c0 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -125,7 +125,7 @@ pub const CurSel = struct { return if (self.selection) |*sel| sel else unreachable; } - pub fn to_selection(self: *const Self, root: Buffer.Root, metrics: Buffer.Metrics) Selection { + fn to_selection(self: *const Self, root: Buffer.Root, metrics: Buffer.Metrics) Selection { return switch (tui.get_selection_style()) { .normal => self.to_selection_normal(), .inclusive => self.to_selection_inclusive(root, metrics),