Skip to content

Commit 2c7429f

Browse files
committed
fix iterator use
1 parent cc6343b commit 2c7429f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lnav.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,8 +2131,8 @@ VALUES ('org.lnav.mouse-support', -1, DATETIME('now', '+1 minute'),
21312131
{
21322132
auto win = lnav_data.ld_log_source.window_at(
21332133
sel_opt.value());
2134-
const auto& msg = *win->begin();
2135-
auto hash_res = msg.get_line_hash();
2134+
auto win_iter = win->begin();
2135+
auto hash_res = win_iter->get_line_hash();
21362136
if (hash_res.isOk()) {
21372137
vs.vs_log_selection = hash_res.unwrap().to_string();
21382138
}

0 commit comments

Comments
 (0)