mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-17 06:50:45 +08:00
53796ca2ea
Adds an optional keep-open argument to all select.lua script bindings that prevents the menu from closing after a selection. Menus that display selection state (tracks, audio device) or a current position indicator (playlist, chapter, edition, subtitle line) are wrapped in a recursive function so the list is rebuilt after each selection and the indicators remain accurate. default_item is passed to preserve the cursor position on the last selected item. The history confirmation dialog reopens the history menu when No is selected, and closes when Yes is selected as there is nothing to show anymore.