summaryrefslogtreecommitdiff
path: root/src/client.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-10-15 18:51:31 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-10-15 18:51:31 +0100
commit03c74b7a885ab116ed88907d98bf3e314e019cc1 (patch)
treef2a1337f96e63c1d08b13d149d8c77dd0e549b28 /src/client.hh
parentfe0a4f0d11362fd89d35067847cefe12fb249d68 (diff)
Detect file external modification and ask the user whether to reload or not
* Buffer now store a m_fs_timestamp field. * Client in Normal mode checks current buffer file every 500 ms, or each time it goes back to Normal mode.
Diffstat (limited to 'src/client.hh')
-rw-r--r--src/client.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.hh b/src/client.hh
index 3cbb15d9..de3319d2 100644
--- a/src/client.hh
+++ b/src/client.hh
@@ -86,6 +86,8 @@ public:
UserInterface& ui() const { return *m_ui; }
+ void check_buffer_fs_timestamp();
+
void reset_normal_mode();
private:
void change_input_mode(InputMode* new_mode);