From a5c87908e172063fd601a0229d65995cba2ff6f9 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 13 Feb 2015 12:58:15 -0800 Subject: [PATCH] Set the new active line correctly after splitting by karaoke --- src/command/edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/edit.cpp b/src/command/edit.cpp index 295690793..4ee264e18 100644 --- a/src/command/edit.cpp +++ b/src/command/edit.cpp @@ -1081,7 +1081,7 @@ struct edit_line_split_by_karaoke final : public validate_sel_nonempty { AssDialogue *new_active = c->selectionController->GetActiveLine(); if (!new_sel.count(c->selectionController->GetActiveLine())) - new_active = *sel.begin(); + new_active = *new_sel.begin(); c->selectionController->SetSelectionAndActive(std::move(new_sel), new_active); } };