| 187 | } |
| 188 | |
| 189 | void NppInterface::replace_text(TextPosition from, TextPosition to, std::string_view replacement) { |
| 190 | send_msg_to_scintilla(SCI_SETTARGETSTART, from); |
| 191 | send_msg_to_scintilla(SCI_SETTARGETEND, to); |
| 192 | send_msg_to_scintilla(SCI_REPLACETARGET, replacement.size(), reinterpret_cast<LPARAM>(replacement.data())); |
| 193 | } |
| 194 | |
| 195 | void NppInterface::set_selection(TextPosition from, TextPosition to) { post_msg_to_scintilla(SCI_SETSEL, from, to); } |
| 196 |
no test coverage detected