summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-10-17 18:47:09 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-10-17 18:47:09 +0100
commit44281c8fedfd923b951580cf42bc768991eae502 (patch)
tree12af1afe01f44c8487519756a5b4804d7cb4b3b2 /src/buffer.hh
parentc3bafea2cd17c1df58ef4714c9037b814c6b7937 (diff)
More robust Buffer filesystem timestamp handling
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 d1bad814..cf537749 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -17,6 +17,8 @@ namespace Kakoune
class Buffer;
+constexpr time_t InvalidTime = 0;
+
struct BufferCoord : LineAndColumn<BufferCoord, LineCount, ByteCount>
{
constexpr BufferCoord(LineCount line = 0, ByteCount column = 0)
@@ -90,7 +92,8 @@ public:
NoUndo = 8,
};
- Buffer(String name, Flags flags, std::vector<String> lines = { "\n" });
+ Buffer(String name, Flags flags, std::vector<String> lines = { "\n" },
+ time_t fs_timestamp = InvalidTime);
Buffer(const Buffer&) = delete;
Buffer& operator= (const Buffer&) = delete;
~Buffer();