Skip to content

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

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

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

Conversation

@Noethix55555

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