diff --git a/js/sequence_prompt_builder.js b/js/sequence_prompt_builder.js index fe89007..eac59b4 100644 --- a/js/sequence_prompt_builder.js +++ b/js/sequence_prompt_builder.js @@ -557,11 +557,17 @@ function configure(node) { // Let the browser insert the pasted text first, then parse its // shot markers and redraw the track without losing the paste. setTimeout(() => { - const changed = syncPrompt(clip, prompt.value); + syncPrompt(clip, prompt.value); promptText = prompt.value; clip.prompt = prompt.value; persistState(); - if (changed) render(); + // A paste can change the text of an existing shot without + // adding/removing shot markers. Redraw in both cases so the + // timeline labels and shot chips reflect the pasted text. + // The previous conditional left the shot track stale when + // syncPrompt returned false for plain or partially formatted + // pasted text. + render(); }, 0); }; prompt.onselect = rememberPromptSelection;