Files
nuwiki/scripts
gffranco 96d53dddf3
CI / cargo fmt --check (push) Successful in 33s
CI / cargo clippy (push) Successful in 36s
CI / cargo test (push) Successful in 46s
CI / editor keymaps (push) Successful in 1m49s
fix(install): guard download_bin.vim against 'compatible' mode (dein build)
The dein/vim-plug build hook runs `vim -e -s -c "source scripts/download_bin.vim"`,
which starts in 'compatible' mode. There, leading-backslash line
continuations aren't recognised, so the multi-line URL string raised
`E10: \ should be followed by /, ? or &`. The install actually succeeded
(binary downloaded), but in silent Ex mode any emitted error makes Vim
exit non-zero — so dein reported a build failure. :NuwikiInstall worked
because a normal session is 'nocompatible'.

Wrap the script in the standard `let s:cpo_save = &cpo | set cpo&vim` …
`let &cpo = s:cpo_save` guard so line continuations parse regardless of
how it's invoked. Verified the exact dein command now exits 0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 02:05:56 +00:00
..