From 93ecc3efd6e48a8cebbdb8a288db64810665f435 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 22 Mar 2014 21:00:24 +0000 Subject: [PATCH] style tweak --- src/main.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index 9fed6433..681ffb0b 100644 --- a/src/main.cc +++ b/src/main.cc @@ -147,8 +147,10 @@ void register_env_vars() void register_registers() { using StringList = std::vector; - struct DynRegDesc { char name; StringList (*func)(const Context&); }; - static const DynRegDesc dyn_regs[] = { + static const struct { + char name; + StringList (*func)(const Context&); + } dyn_regs[] = { { '%', [](const Context& context) { return StringList{{context.buffer().display_name()}}; } }, { '.', [](const Context& context) { return context.selections_content(); } }, { '#', [](const Context& context) { return StringList{{to_string((int)context.selections().size())}}; } },