diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-04-26 12:23:10 +0100 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 23:04:12 +0800 |
commit | 0d1ae6e1b7718d5b6bcd80f5e0f5a737070267e3 (patch) | |
tree | f21e7629426ab0b106dc26f3f7952468207609a9 /src/nvim/options.lua | |
parent | d04770a5436f2cc054473b983109f7a94dec6878 (diff) | |
download | rneovim-0d1ae6e1b7718d5b6bcd80f5e0f5a737070267e3.tar.gz rneovim-0d1ae6e1b7718d5b6bcd80f5e0f5a737070267e3.tar.bz2 rneovim-0d1ae6e1b7718d5b6bcd80f5e0f5a737070267e3.zip |
vim-patch:9.0.1374: function for setting options not used consistently
Problem: Function for setting options not used consistently.
Solution: Use a function for 'encoding' and terminal options. (Yegappan
Lakshmanan, closes vim/vim#12099)
https://github.com/vim/vim/commit/c727b19e9f1df36e44321d933334c7b4961daa54
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index aeef336686..e028fbb6a6 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -676,7 +676,8 @@ return { type='string', scope={'global'}, deny_in_modelines=true, varname='p_enc', - defaults={if_true=macros('ENC_DFLT')} + defaults={if_true=macros('ENC_DFLT')}, + cb='did_set_encoding' }, { full_name='endoffile', abbreviation='eof', @@ -771,7 +772,8 @@ return { alloced=true, redraw={'statuslines', 'current_buffer'}, varname='p_fenc', - defaults={if_true=""} + defaults={if_true=""}, + cb='did_set_encoding' }, { full_name='fileencodings', abbreviation='fencs', @@ -1517,7 +1519,8 @@ return { short_desc=N_("Converts the output of external commands"), type='string', scope={'global', 'buffer'}, varname='p_menc', - defaults={if_true=""} + defaults={if_true=""}, + cb='did_set_encoding' }, { full_name='makeprg', abbreviation='mp', |