Pass row/column position to input seek method
This commit is contained in:
parent
8b70cb85f7
commit
facafcd6e4
5 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue