summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-01-06 21:04:09 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-01-09 22:51:50 +0000
commitb247a05e43e2804f22196102d1340e79fd4cf3a8 (patch)
tree8e4d3e9d8ae46cd45640503de7e573d2447658bb /src/buffer.hh
parentd96b5aa04d81830070a717ec696c76c7d20a9cfa (diff)
Buffer: maintain a per line timestamp
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 17de0f07..347be959 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -108,6 +108,7 @@ public:
BufferIterator erase(BufferIterator begin, BufferIterator end);
size_t timestamp() const { return m_timestamp; }
+ size_t line_timestamp(LineCount line) const { return m_lines[line].timestamp; }
time_t fs_timestamp() const;
void set_fs_timestamp(time_t ts);
@@ -182,6 +183,7 @@ private:
struct Line
{
+ size_t timestamp;
ByteCount start;
String content;