refactor: CurSel.to_selection is internal

This commit is contained in:
CJ van den Berg 2025-11-26 23:16:50 +01:00
parent 8ba6e1843a
commit c7c271e903
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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),