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

Method cursor_char_idx

src/editor/buffer.rs:373–376  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

371 }
372
373 fn cursor_char_idx(&self) -> usize {
374 self.document
375 .position_to_char(self.cursor.line, self.cursor.column)
376 }
377
378 fn push_undo(&mut self, record: UndoRecord) {
379 if record.inserted.is_empty() && record.deleted.is_empty() {

Callers 6

insert_charMethod · 0.80
insert_strMethod · 0.80
delete_char_forwardMethod · 0.80
delete_char_backwardMethod · 0.80
move_previous_wordMethod · 0.80
move_next_wordMethod · 0.80

Calls 1

position_to_charMethod · 0.80

Tested by

no test coverage detected