diff --git a/src/hotkeys.cc b/src/hotkeys.cc index 240fe39f..893858be 100644 --- a/src/hotkeys.cc +++ b/src/hotkeys.cc @@ -895,7 +895,7 @@ void handle_paging_key(int ch) } } else { - lnav_data.ld_view_stack.top() | [](auto top_tc) { + lnav_data.ld_view_stack.top() | [&](auto top_tc) { auto *dst_view = dynamic_cast(top_tc->get_sub_source()); if (dst_view != nullptr) {