MCPcopy Create free account
hub / github.com/Eeive/Evcode-ide / set_cursor

Method set_cursor

src/editor/buffer.rs:71–73  ·  view source on GitHub ↗
(&mut self, line: usize, column: usize)

Source from the content-addressed store, hash-verified

69 }
70
71 pub fn set_cursor(&mut self, line: usize, column: usize) {
72 self.cursor = self.cursor.set(line, column, &self.document);
73 }
74
75 pub fn line_count(&self) -> usize {
76 self.document.line_count()

Calls 1

setMethod · 0.80