From 45d7aa3301d436aef3cf5d88db8d0da145f9b70c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 1 Mar 2025 07:45:47 +0800 Subject: 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 https://github.com/vim/vim/commit/5e8b2268e180cbf5079ea6dbe9c8fd29c3e3133c --- src/nvim/ex_cmds2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 61a6dab897..5bd79719e7 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -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 "); + do_cmdline_cmd("command -nargs=* -keepscript CompilerSet set "); } else { // ":compiler! {name}" sets local options. // To remain backwards compatible "current_compiler" is always -- cgit