Convert the visual selection_anchor to a raw position for rendering.
(&self)
| 1134 | |
| 1135 | /// Convert the visual selection_anchor to a raw position for rendering. |
| 1136 | pub fn selection_anchor_raw(&self) -> Option<usize> { |
| 1137 | self.selection_anchor.map(|a| styling::cursor_to_raw(&self.text, a)) |
| 1138 | } |
| 1139 | |
| 1140 | /// Get the selection range in raw positions for rendering. |
| 1141 | pub fn selection_range_raw(&self) -> Option<(usize, usize)> { |
nothing calls this directly
no test coverage detected