From 131b0a8298b09eac744e6a2cbe8843d2691c3f68 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 16 Mar 2016 13:59:30 +0000 Subject: Use ByteCoords directly for buffer insert/erase/replace --- src/buffer.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/buffer.hh') 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; -- cgit v1.2.3