From b96f653b6c210e019c57e68b9823bc7c5a99d27e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 14 Jul 2014 19:00:54 +0100 Subject: [PATCH] Fix numbering with '#' register --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 2c2a5c49..4fe582ba 100644 --- a/src/main.cc +++ b/src/main.cc @@ -180,7 +180,7 @@ void register_registers() { '.', [](const Context& context) { return context.selections_content(); } }, { '#', [](const Context& context) { StringList res; - for (size_t i = 1; i < context.selections().size(); ++i) + for (size_t i = 1; i < context.selections().size()+1; ++i) res.push_back(to_string((int)i)); return res; } }