Pass row/column position to input seek method

This commit is contained in:
Max Brunsfeld 2018-02-14 07:31:49 -08:00
parent 8b70cb85f7
commit facafcd6e4
5 changed files with 10 additions and 10 deletions

View file

@ -70,7 +70,7 @@ const char * SpyInput::read(void *payload, uint32_t *bytes_read) {
return spy->buffer;
}
int SpyInput::seek(void *payload, uint32_t byte) {
int SpyInput::seek(void *payload, uint32_t byte, TSPoint position) {
auto spy = static_cast<SpyInput *>(payload);
spy->byte_offset = byte;
return 0;

View file

@ -17,7 +17,7 @@ class SpyInput {
std::vector<SpyInputEdit> undo_stack;
static const char * read(void *, uint32_t *);
static int seek(void *, uint32_t);
static int seek(void *, uint32_t, TSPoint);
std::pair<std::string, TSPoint> swap_substr(size_t, size_t, std::string);
public: