summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-07-25 23:47:47 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-07-25 23:47:47 +0100
commit8d6e8bc06f1787893ef53b8ad2c5cd5451f94bb9 (patch)
tree140175445bb59caf6968d7f35da2a0921f7d9204 /src/client.cc
parent6813440212001940e1c3a50efec6ee5f74eb47b1 (diff)
Display a [no-hooks] tag in the mode line when hooks are disabled
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index 7eb35eee..c3218b77 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -64,6 +64,8 @@ DisplayLine Client::generate_mode_line() const
status.push_back({ "[recording ("_str + m_input_handler.recording_reg() + ")]", info_face });
if (context().buffer().flags() & Buffer::Flags::New)
status.push_back({ "[new file]", info_face });
+ if (context().are_user_hooks_disabled())
+ status.push_back({ "[no-hooks]", info_face });
if (context().buffer().flags() & Buffer::Flags::Fifo)
status.push_back({ "[fifo]", info_face });
status.push_back({ " ", status_face });