| 67 | } |
| 68 | |
| 69 | void ScintillaEditor::ReplaceSelection(const std::string& text) const |
| 70 | { |
| 71 | ::SendMessage(m_hScintilla, SCI_REPLACESEL, 0, reinterpret_cast<LPARAM>(text.c_str())); |
| 72 | |
| 73 | // Restore the selection |
| 74 | MakeSelection(m_nStartPos, m_nStartPos + text.length()); |
| 75 | } |
| 76 | |
| 77 | void ScintillaEditor::MakeSelection(size_t start, size_t end) const |
| 78 | { |
no outgoing calls
no test coverage detected