# HG changeset patch # User Bram Moolenaar # Date 1550422812 -3600 # Node ID df0426d67bb39b3ad05c57575e6f123ae59647ac # Parent e362e5e887bc66f82060717e0fb0aaabf32d1969 patch 8.1.0942: options window still checks for the multi_byte feature commit https://github.com/vim/vim/commit/76cbe811dafea0609e87ee4b9d025e2387e20fac Author: Bram Moolenaar Date: Sun Feb 17 17:53:49 2019 +0100 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 https://github.com/vim/vim/issues/3990) diff --git a/runtime/optwin.vim b/runtime/optwin.vim --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -685,12 +685,10 @@ if has("printer") call append("$", "printencoding\tencoding used to print the PostScript file for :hardcopy") call OptionG("penc", &penc) endif - if has("multi_byte") - call append("$", "printmbcharset\tthe CJK character set to be used for CJK output from :hardcopy") - call OptionG("pmbcs", &pmbcs) - call append("$", "printmbfont\tlist of font names to be used for CJK output from :hardcopy") - call OptionG("pmbfn", &pmbfn) - endif + call append("$", "printmbcharset\tthe CJK character set to be used for CJK output from :hardcopy") + call OptionG("pmbcs", &pmbcs) + call append("$", "printmbfont\tlist of font names to be used for CJK output from :hardcopy") + call OptionG("pmbfn", &pmbfn) endif call Header("messages and info") @@ -996,11 +994,9 @@ call BinOptionL("eol") call append("$", "fixendofline\tfixes missing end-of-line at end of text file") call append("$", "\t(local to buffer)") call BinOptionL("fixeol") -if has("multi_byte") - call append("$", "bomb\tprepend a Byte Order Mark to the file") - call append("$", "\t(local to buffer)") - call BinOptionL("bomb") -endif +call append("$", "bomb\tprepend a Byte Order Mark to the file") +call append("$", "\t(local to buffer)") +call BinOptionL("bomb") call append("$", "fileformat\tend-of-line format: \"dos\", \"unix\" or \"mac\"") call append("$", "\t(local to buffer)") call OptionL("ff") @@ -1252,33 +1248,31 @@ if has("xim") endif -if has("multi_byte") - call Header("multi-byte characters") - call append("$", "encoding\tcharacter encoding used in Vim: \"latin1\", \"utf-8\"") - call append("$", "\t\"euc-jp\", \"big5\", etc.") - call OptionG("enc", &enc) - call append("$", "fileencoding\tcharacter encoding for the current file") - call append("$", "\t(local to buffer)") - call OptionL("fenc") - call append("$", "fileencodings\tautomatically detected character encodings") - call OptionG("fencs", &fencs) - call append("$", "termencoding\tcharacter encoding used by the terminal") - call OptionG("tenc", &tenc) - call append("$", "charconvert\texpression used for character encoding conversion") - call OptionG("ccv", &ccv) - call append("$", "delcombine\tdelete combining (composing) characters on their own") - call BinOptionG("deco", &deco) - call append("$", "maxcombine\tmaximum number of combining (composing) characters displayed") - call OptionG("mco", &mco) - if has("xim") && has("gui_gtk") - call append("$", "imactivatekey\tkey that activates the X input method") - call OptionG("imak", &imak) - endif - call append("$", "ambiwidth\twidth of ambiguous width characters") - call OptionG("ambw", &ambw) - call append("$", "emoji\temoji characters are full width") - call BinOptionG("emo", &emo) +call Header("multi-byte characters") +call append("$", "encoding\tcharacter encoding used in Vim: \"latin1\", \"utf-8\"") +call append("$", "\t\"euc-jp\", \"big5\", etc.") +call OptionG("enc", &enc) +call append("$", "fileencoding\tcharacter encoding for the current file") +call append("$", "\t(local to buffer)") +call OptionL("fenc") +call append("$", "fileencodings\tautomatically detected character encodings") +call OptionG("fencs", &fencs) +call append("$", "termencoding\tcharacter encoding used by the terminal") +call OptionG("tenc", &tenc) +call append("$", "charconvert\texpression used for character encoding conversion") +call OptionG("ccv", &ccv) +call append("$", "delcombine\tdelete combining (composing) characters on their own") +call BinOptionG("deco", &deco) +call append("$", "maxcombine\tmaximum number of combining (composing) characters displayed") +call OptionG("mco", &mco) +if has("xim") && has("gui_gtk") + call append("$", "imactivatekey\tkey that activates the X input method") + call OptionG("imak", &imak) endif +call append("$", "ambiwidth\twidth of ambiguous width characters") +call OptionG("ambw", &ambw) +call append("$", "emoji\temoji characters are full width") +call BinOptionG("emo", &emo) call Header("various") diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -780,6 +780,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 942, +/**/ 941, /**/ 940,