hlset(hlget('Normal')) fails with E416 when a highlight attribute value contains spaces (e.g. font name "Monospace 10"). hlg_add_or_update() builds a string like "font=Monospace 10" and passes it to do_highlight(), whose parser splits on whitespace and treats "10" as a separate key without "=".
Fix by quoting values with single quotes (e.g. font='Monospace 10') when the value contains spaces and the attribute is a key=value pair. do_highlight() already supports single-quoted values.
https://github.com/vim/vim/pull/19843
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()