vim-patch:9.1.1158: :verbose set has wrong file name with :compiler! (#32682)

Problem:  :verbose set has wrong file name with :compiler!
Solution: Add -keepscript (zeertzjq)

closes: vim/vim#16752

5e8b2268e1
This commit is contained in:
zeertzjq
2025-03-01 07:45:47 +08:00
committed by GitHub
parent 7b4295390f
commit 45d7aa3301
2 changed files with 27 additions and 2 deletions

View File

@@ -734,7 +734,7 @@ void ex_compiler(exarg_T *eap)
if (eap->forceit) {
// ":compiler! {name}" sets global options
do_cmdline_cmd("command -nargs=* CompilerSet set <args>");
do_cmdline_cmd("command -nargs=* -keepscript CompilerSet set <args>");
} else {
// ":compiler! {name}" sets local options.
// To remain backwards compatible "current_compiler" is always