MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / cursor_pos_raw

Method cursor_pos_raw

src/text_input.rs:1131–1133  ·  view source on GitHub ↗

Convert the visual cursor_pos to a raw position for rendering. Enters empty style tags at the cursor boundary.

(&self)

Source from the content-addressed store, hash-verified

1129 /// Convert the visual cursor_pos to a raw position for rendering.
1130 /// Enters empty style tags at the cursor boundary.
1131 pub fn cursor_pos_raw(&self) -> usize {
1132 styling::cursor_to_raw_for_insertion(&self.text, self.cursor_pos)
1133 }
1134
1135 /// Convert the visual selection_anchor to a raw position for rendering.
1136 pub fn selection_anchor_raw(&self) -> Option<usize> {

Callers 2

Calls 1

Tested by

no test coverage detected