aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-06 08:29:57 +0800
committerGitHub <noreply@github.com>2022-08-06 08:29:57 +0800
commit5f0fbe7c2fae82c3bf911d726af483c8a0983379 (patch)
treed8c781dd3e7d67cb4a08134c0c028b1e129dfe60
parenta308f53525d77e26c372af385f6f4d89638b3962 (diff)
downloadrneovim-5f0fbe7c2fae82c3bf911d726af483c8a0983379.tar.gz
rneovim-5f0fbe7c2fae82c3bf911d726af483c8a0983379.tar.bz2
rneovim-5f0fbe7c2fae82c3bf911d726af483c8a0983379.zip
vim-patch:8.1.0942: options window still checks for the multi_byte feature (#19652)
Problem: Options window still checks for the multi_byte feature. Solution: Remove the unnecessary check. (Dominique Pelle, closes vim/vim#3990) https://github.com/vim/vim/commit/76cbe811dafea0609e87ee4b9d025e2387e20fac
-rw-r--r--runtime/optwin.vim62
1 files changed, 28 insertions, 34 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim
index 228336e5a4..02cf573ea3 100644
--- a/runtime/optwin.vim
+++ b/runtime/optwin.vim
@@ -665,12 +665,10 @@ if has("printer")
call append("$", "printencoding\tencoding used to print the PostScript file for :hardcopy")
call <SID>OptionG("penc", &penc)
endif
- if has("multi_byte")
- call append("$", "printmbcharset\tthe CJK character set to be used for CJK output from :hardcopy")
- call <SID>OptionG("pmbcs", &pmbcs)
- call append("$", "printmbfont\tlist of font names to be used for CJK output from :hardcopy")
- call <SID>OptionG("pmbfn", &pmbfn)
- endif
+ call append("$", "printmbcharset\tthe CJK character set to be used for CJK output from :hardcopy")
+ call <SID>OptionG("pmbcs", &pmbcs)
+ call append("$", "printmbfont\tlist of font names to be used for CJK output from :hardcopy")
+ call <SID>OptionG("pmbfn", &pmbfn)
endif
call <SID>Header("messages and info")
@@ -981,11 +979,9 @@ call <SID>BinOptionL("eol")
call append("$", "fixendofline\tfixes missing end-of-line at end of text file")
call append("$", "\t(local to buffer)")
call <SID>BinOptionL("fixeol")
-if has("multi_byte")
- call append("$", "bomb\tprepend a Byte Order Mark to the file")
- call append("$", "\t(local to buffer)")
- call <SID>BinOptionL("bomb")
-endif
+call append("$", "bomb\tprepend a Byte Order Mark to the file")
+call append("$", "\t(local to buffer)")
+call <SID>BinOptionL("bomb")
call append("$", "fileformat\tend-of-line format: \"dos\", \"unix\" or \"mac\"")
call append("$", "\t(local to buffer)")
call <SID>OptionL("ff")
@@ -1204,30 +1200,28 @@ if has("xim")
endif
-if has("multi_byte")
- call <SID>Header("multi-byte characters")
- call <SID>AddOption("encoding", "character encoding used in Nvim: \"utf-8\"")
- call <SID>OptionG("enc", &enc)
- call append("$", "fileencoding\tcharacter encoding for the current file")
- call append("$", "\t" .. s:local_to_buffer)
- call <SID>OptionL("fenc")
- call append("$", "fileencodings\tautomatically detected character encodings")
- call <SID>OptionG("fencs", &fencs)
- call append("$", "charconvert\texpression used for character encoding conversion")
- call <SID>OptionG("ccv", &ccv)
- call append("$", "delcombine\tdelete combining (composing) characters on their own")
- call <SID>BinOptionG("deco", &deco)
- call append("$", "maxcombine\tmaximum number of combining (composing) characters displayed")
- call <SID>OptionG("mco", &mco)
- if has("xim") && has("gui_gtk")
- call append("$", "imactivatekey\tkey that activates the X input method")
- call <SID>OptionG("imak", &imak)
- endif
- call append("$", "ambiwidth\twidth of ambiguous width characters")
- call <SID>OptionG("ambw", &ambw)
- call append("$", "emoji\temoji characters are full width")
- call <SID>BinOptionG("emo", &emo)
+call <SID>Header("multi-byte characters")
+call <SID>AddOption("encoding", "character encoding used in Nvim: \"utf-8\"")
+call <SID>OptionG("enc", &enc)
+call append("$", "fileencoding\tcharacter encoding for the current file")
+call append("$", "\t" .. s:local_to_buffer)
+call <SID>OptionL("fenc")
+call append("$", "fileencodings\tautomatically detected character encodings")
+call <SID>OptionG("fencs", &fencs)
+call append("$", "charconvert\texpression used for character encoding conversion")
+call <SID>OptionG("ccv", &ccv)
+call append("$", "delcombine\tdelete combining (composing) characters on their own")
+call <SID>BinOptionG("deco", &deco)
+call append("$", "maxcombine\tmaximum number of combining (composing) characters displayed")
+call <SID>OptionG("mco", &mco)
+if has("xim") && has("gui_gtk")
+ call append("$", "imactivatekey\tkey that activates the X input method")
+ call <SID>OptionG("imak", &imak)
endif
+call append("$", "ambiwidth\twidth of ambiguous width characters")
+call <SID>OptionG("ambw", &ambw)
+call append("$", "emoji\temoji characters are full width")
+call <SID>BinOptionG("emo", &emo)
call <SID>Header("various")