summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-09-06 18:33:18 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-09-06 18:33:18 +0000
commit3f51feaaef05a8c3a70bfb81c483f1ff7add396c (patch)
tree9b783680703cfbf79ebf2e31c80d87e34ff20708 /src/buffer.hh
parent6668151c780ac774f59fcd6aa60ddd00015cfeb7 (diff)
Buffer: accept initial content in constructor
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 66136f82..f1441747 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -65,7 +65,8 @@ private:
class Buffer
{
public:
- Buffer(const std::string& name);
+ Buffer(const std::string& name,
+ const BufferString& initial_content = "");
void erase(const BufferIterator& begin,
const BufferIterator& end);
@@ -78,7 +79,6 @@ public:
BufferIterator begin() const;
BufferIterator end() const;
-
BufferSize length() const;
BufferIterator iterator_at(const BufferCoord& line_and_column) const;