mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.3901: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script
Problem: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script. Solution: Do not restore 'cpo' at the end of the main .vimrc.
This commit is contained in:
@@ -1866,6 +1866,7 @@ typedef struct
|
||||
int sn_version; // :scriptversion
|
||||
int sn_state; // SN_STATE_ values
|
||||
char_u *sn_save_cpo; // 'cpo' value when :vim9script found
|
||||
char sn_is_vimrc; // .vimrc file, do not restore 'cpo'
|
||||
|
||||
# ifdef FEAT_PROFILE
|
||||
int sn_prof_on; // TRUE when script is/was profiled
|
||||
|
Reference in New Issue
Block a user