Skip to content

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

Open
Bolt4243 wants to merge 1 commit into
mpvnet-player:mainfrom
Bolt4243:fix/short-menu-syntax-parse
Open

fix: set IsShortMenuSyntax in Parse to preserve '! ' menu syntax on round-trip#786
Bolt4243 wants to merge 1 commit into
mpvnet-player:mainfrom
Bolt4243:fix/short-menu-syntax-parse

Conversation

@Bolt4243

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant