diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-03-16 13:59:30 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-03-16 13:59:30 +0000 |
| commit | 131b0a8298b09eac744e6a2cbe8843d2691c3f68 (patch) | |
| tree | 1b4ccd7e08632dc6de8d24c3152bdf41a4b4c6c7 /src/buffer.hh | |
| parent | ad5da15cfaa2e4b85db9726238ec5ed0c112d1f9 (diff) | |
Use ByteCoords directly for buffer insert/erase/replace
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 6b99ab1d..7e03c75c 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -121,9 +121,9 @@ public: bool set_name(String name); void update_display_name(); - BufferIterator insert(const BufferIterator& pos, StringView content); - BufferIterator erase(BufferIterator begin, BufferIterator end); - BufferIterator replace(const BufferIterator& begin, const BufferIterator& end, StringView content); + ByteCoord insert(ByteCoord pos, StringView content); + ByteCoord erase(ByteCoord begin, ByteCoord end); + ByteCoord replace(ByteCoord begin, ByteCoord end, StringView content); size_t timestamp() const; timespec fs_timestamp() const; |
