summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 779d09dce..9c34b9a5a 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -586,4 +586,16 @@ impHandler(enableHighlight)
return false;
}
+impHandler(disableHighlight)
+{
+ if (event.tab)
+ {
+ event.tab->setAllowHighlight(false);
+ if (chatWindow)
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions