summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-23 13:59:33 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-30 13:59:38 +0200
commitd5b190369a9f326984071eee6122ec42943b2a68 (patch)
treeae8d6fc27a0f2c0a3a6a3612b9fcccde35e1d1b7 /src/buffer.hh
parent97df6f22226d2854bea4441604b1b54f4fbb0a26 (diff)
DisplayBuffer: use coords rather than iterators
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 8436560a..7aeebd64 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -120,8 +120,11 @@ public:
bool undo();
bool redo();
+ String string(const BufferCoord& begin,
+ const BufferCoord& end) const;
String string(const BufferIterator& begin,
- const BufferIterator& end) const;
+ const BufferIterator& end) const
+ { return string(begin.coord(), end.coord()); }
ByteCount offset(const BufferCoord& c) const;
ByteCount distance(const BufferCoord& begin, const BufferCoord& end) const;