Skip to content

Commit 76cbe81

Browse files
committed
patch 8.1.0942: options window still checks for the multi_byte feature
Problem: Options window still checks for the multi_byte feature. Solution: Remove the unnecessary check. (Dominique Pelle, closes #3990)
1 parent 4f97475 commit 76cbe81

2 files changed

Lines changed: 34 additions & 38 deletions

File tree

runtime/optwin.vim

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -685,12 +685,10 @@ if has("printer")
685685
call append("$", "printencoding\tencoding used to print the PostScript file for :hardcopy")
686686
call <SID>OptionG("penc", &penc)
687687
endif
688-
if has("multi_byte")
689-
call append("$", "printmbcharset\tthe CJK character set to be used for CJK output from :hardcopy")
690-
call <SID>OptionG("pmbcs", &pmbcs)
691-
call append("$", "printmbfont\tlist of font names to be used for CJK output from :hardcopy")
692-
call <SID>OptionG("pmbfn", &pmbfn)
693-
endif
688+
call append("$", "printmbcharset\tthe CJK character set to be used for CJK output from :hardcopy")
689+
call <SID>OptionG("pmbcs", &pmbcs)
690+
call append("$", "printmbfont\tlist of font names to be used for CJK output from :hardcopy")
691+
call <SID>OptionG("pmbfn", &pmbfn)
694692
endif
695693

696694
call <SID>Header("messages and info")
@@ -996,11 +994,9 @@ call <SID>BinOptionL("eol")
996994
call append("$", "fixendofline\tfixes missing end-of-line at end of text file")
997995
call append("$", "\t(local to buffer)")
998996
call <SID>BinOptionL("fixeol")
999-
if has("multi_byte")
1000-
call append("$", "bomb\tprepend a Byte Order Mark to the file")
1001-
call append("$", "\t(local to buffer)")
1002-
call <SID>BinOptionL("bomb")
1003-
endif
997+
call append("$", "bomb\tprepend a Byte Order Mark to the file")
998+
call append("$", "\t(local to buffer)")
999+
call <SID>BinOptionL("bomb")
10041000
call append("$", "fileformat\tend-of-line format: \"dos\", \"unix\" or \"mac\"")
10051001
call append("$", "\t(local to buffer)")
10061002
call <SID>OptionL("ff")
@@ -1252,33 +1248,31 @@ if has("xim")
12521248
endif
12531249

12541250

1255-
if has("multi_byte")
1256-
call <SID>Header("multi-byte characters")
1257-
call append("$", "encoding\tcharacter encoding used in Vim: \"latin1\", \"utf-8\"")
1258-
call append("$", "\t\"euc-jp\", \"big5\", etc.")
1259-
call <SID>OptionG("enc", &enc)
1260-
call append("$", "fileencoding\tcharacter encoding for the current file")
1261-
call append("$", "\t(local to buffer)")
1262-
call <SID>OptionL("fenc")
1263-
call append("$", "fileencodings\tautomatically detected character encodings")
1264-
call <SID>OptionG("fencs", &fencs)
1265-
call append("$", "termencoding\tcharacter encoding used by the terminal")
1266-
call <SID>OptionG("tenc", &tenc)
1267-
call append("$", "charconvert\texpression used for character encoding conversion")
1268-
call <SID>OptionG("ccv", &ccv)
1269-
call append("$", "delcombine\tdelete combining (composing) characters on their own")
1270-
call <SID>BinOptionG("deco", &deco)
1271-
call append("$", "maxcombine\tmaximum number of combining (composing) characters displayed")
1272-
call <SID>OptionG("mco", &mco)
1273-
if has("xim") && has("gui_gtk")
1274-
call append("$", "imactivatekey\tkey that activates the X input method")
1275-
call <SID>OptionG("imak", &imak)
1276-
endif
1277-
call append("$", "ambiwidth\twidth of ambiguous width characters")
1278-
call <SID>OptionG("ambw", &ambw)
1279-
call append("$", "emoji\temoji characters are full width")
1280-
call <SID>BinOptionG("emo", &emo)
1281-
endif
1251+
call <SID>Header("multi-byte characters")
1252+
call append("$", "encoding\tcharacter encoding used in Vim: \"latin1\", \"utf-8\"")
1253+
call append("$", "\t\"euc-jp\", \"big5\", etc.")
1254+
call <SID>OptionG("enc", &enc)
1255+
call append("$", "fileencoding\tcharacter encoding for the current file")
1256+
call append("$", "\t(local to buffer)")
1257+
call <SID>OptionL("fenc")
1258+
call append("$", "fileencodings\tautomatically detected character encodings")
1259+
call <SID>OptionG("fencs", &fencs)
1260+
call append("$", "termencoding\tcharacter encoding used by the terminal")
1261+
call <SID>OptionG("tenc", &tenc)
1262+
call append("$", "charconvert\texpression used for character encoding conversion")
1263+
call <SID>OptionG("ccv", &ccv)
1264+
call append("$", "delcombine\tdelete combining (composing) characters on their own")
1265+
call <SID>BinOptionG("deco", &deco)
1266+
call append("$", "maxcombine\tmaximum number of combining (composing) characters displayed")
1267+
call <SID>OptionG("mco", &mco)
1268+
if has("xim") && has("gui_gtk")
1269+
call append("$", "imactivatekey\tkey that activates the X input method")
1270+
call <SID>OptionG("imak", &imak)
1271+
endif
1272+
call append("$", "ambiwidth\twidth of ambiguous width characters")
1273+
call <SID>OptionG("ambw", &ambw)
1274+
call append("$", "emoji\temoji characters are full width")
1275+
call <SID>BinOptionG("emo", &emo)
12821276

12831277

12841278
call <SID>Header("various")

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ static char *(features[]) =
779779

780780
static int included_patches[] =
781781
{ /* Add new patch number below this line */
782+
/**/
783+
942,
782784
/**/
783785
941,
784786
/**/

0 commit comments

Comments
 (0)