From d9acfbd471403a4f11ad050665633d3311a462d9 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 10 May 2015 15:18:39 +0200 Subject: options: mark nonfunctional &termencoding option as hidden. #2631 Remove related dead code and references in the docs. Helped-By: Michael Reed Helped-By: Shougo Matsushita --- src/nvim/option.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/nvim/option.c') diff --git a/src/nvim/option.c b/src/nvim/option.c index 91c8493419..9201f7b6c4 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1501,7 +1501,7 @@ static vimoption_T (char_u *)&p_tbidi, PV_NONE, {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, {"termencoding", "tenc", P_STRING|P_VI_DEF|P_RCLR, - (char_u *)&p_tenc, PV_NONE, + (char_u *)NULL, PV_NONE, {(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, {"terse", NULL, P_BOOL|P_VI_DEF, @@ -3705,7 +3705,7 @@ did_set_string_option ( errmsg = e_invarg; } /* 'encoding' and 'fileencoding' */ - else if (varp == &p_enc || gvarp == &p_fenc || varp == &p_tenc) { + else if (varp == &p_enc || gvarp == &p_fenc) { if (gvarp == &p_fenc) { if (!MODIFIABLE(curbuf) && opt_flags != OPT_GLOBAL) errmsg = e_modifiable; @@ -3738,14 +3738,6 @@ did_set_string_option ( if (varp == &p_enc && *curbuf->b_p_keymap != NUL) (void)keymap_init(); - /* When 'termencoding' is not empty and 'encoding' changes or when - * 'termencoding' changes, need to setup for keyboard input and - * display output conversion. */ - if (((varp == &p_enc && *p_tenc != NUL) || varp == &p_tenc)) { - convert_setup(&input_conv, p_tenc, p_enc); - convert_setup(&output_conv, p_enc, p_tenc); - } - } } else if (varp == &p_penc) { /* Canonize printencoding if VIM standard one */ -- cgit