mpv.net icon indicating copy to clipboard operation
mpv.net copied to clipboard

fix: set IsShortMenuSyntax in Parse to preserve '! ' menu syntax on round-trip

Open Bolt4243 opened this issue 5 months ago • 0 comments

InputHelp.Parse never detected the ! short-menu-syntax comment prefix, so binding.IsShortMenuSyntax was always false. On the next save, ConvertToString emitted #menu: instead of ! , silently rewriting every such entry.

Added detection for #! (and bare #!) in Parse alongside the existing #menu: and #custom-menu: branches, setting IsShortMenuSyntax = true so the round-trip is lossless.

Bolt4243 avatar Jun 18 '26 02:06 Bolt4243