summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
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;