summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 1166ae30..3332cbdb 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -760,7 +760,7 @@ void search(Context& context, NormalParams params)
const int main_index = std::min(context.selections().main_index(), saved_reg.size()-1);
regex_prompt<direction>(context, prompt.str(), saved_reg[main_index],
- [reg, count, saved_reg, main_index]
+ [reg, count, saved_reg]
(Regex regex, PromptEvent event, Context& context) {
if (event == PromptEvent::Abort)
{
@@ -871,7 +871,7 @@ void select_regex(Context& context, NormalParams params)
const int main_index = std::min(context.selections().main_index(), saved_reg.size()-1);
regex_prompt(context, std::move(prompt), saved_reg[main_index],
- [reg, capture, saved_reg, main_index](Regex ex, PromptEvent event, Context& context) {
+ [reg, capture, saved_reg](Regex ex, PromptEvent event, Context& context) {
if (event == PromptEvent::Abort)
{
RegisterManager::instance()[reg].set(context, saved_reg);
@@ -896,7 +896,7 @@ void split_regex(Context& context, NormalParams params)
const int main_index = std::min(context.selections().main_index(), saved_reg.size()-1);
regex_prompt(context, std::move(prompt), saved_reg[main_index],
- [reg, capture, saved_reg, main_index](Regex ex, PromptEvent event, Context& context) {
+ [reg, capture, saved_reg](Regex ex, PromptEvent event, Context& context) {
if (event == PromptEvent::Abort)
{
RegisterManager::instance()[reg].set(context, saved_reg);