select.lua: preserve empty subtitle lines

Fixes e9fbf49466.
This commit is contained in:
Guido Cella authored and Kacper Michajłow committed 2026-05-13 15:43:38 +02:00
1 parent 44a2c33939
commit 631cdd3622
1 file changed
+5
+5
View File
@@ -308,6 +308,11 @@ local function select_subtitle_line(secondary)
items[#items + 1] = format_time(line.start, duration) .. " " .. text
times[#times + 1] = line.start
end
if line.text == "" then
items[#items + 1] = format_time(line.start, duration)
times[#times + 1] = line.start
end
end
input.select({