MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / get_current_pos

Method get_current_pos

test/MockEditorInterface.cpp:167–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167TextPosition MockEditorInterface::get_current_pos() const {
168 auto doc = active_document();
169 if (!doc)
170 return -1;
171 return doc->cursor_pos;
172}
173
174int MockEditorInterface::get_current_line_number() const {
175 auto doc = active_document();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected