summaryrefslogtreecommitdiff
path: root/src/commands.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-04-04 18:47:34 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-04-04 18:47:34 +0200
commit6ffdfd77353748f855b1528cdc6ca44b7154bfe3 (patch)
treedc85f02e9867f180161fef0c2d179b3140601c17 /src/commands.cc
parent1822b81d58a7106fabf223c0709ff2fbd913c119 (diff)
Add get_color helper function
Diffstat (limited to 'src/commands.cc')
-rw-r--r--src/commands.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands.cc b/src/commands.cc
index af771891..819cebb7 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -684,8 +684,7 @@ void info(const CommandParameters& params, Context& context)
pos = context.window().display_position(it);
}
const String& message = parser.has_option("assist") ? assist(parser[0], dimensions.column) : parser[0];
- ColorPair colors = ColorRegistry::instance()["Information"];
- context.ui().info_show(message, pos, colors, style);
+ context.ui().info_show(message, pos, get_color("Information"), style);
}
}