selectable: silence unused method warning

The is_selected method is reserved for future per-character
highlight rendering when the module is fully integrated.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-12 16:10:58 -04:00
parent 195abfaab1
commit 783046a3f5

View file

@ -327,6 +327,7 @@ impl SelectableTextState {
} }
/// Check if a logical position is within the current selection. /// Check if a logical position is within the current selection.
#[allow(dead_code)] // Reserved for future per-character highlight rendering
fn is_selected(&self, logical_line: usize, col: usize) -> bool { fn is_selected(&self, logical_line: usize, col: usize) -> bool {
let Some(ref sel) = self.selection else { return false }; let Some(ref sel) = self.selection else { return false };
let (start, end) = sel.range(); let (start, end) = sel.range();