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:
parent
195abfaab1
commit
783046a3f5
1 changed files with 1 additions and 0 deletions
|
|
@ -327,6 +327,7 @@ impl SelectableTextState {
|
|||
}
|
||||
|
||||
/// 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 {
|
||||
let Some(ref sel) = self.selection else { return false };
|
||||
let (start, end) = sel.range();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue