diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2014-04-18 09:35:30 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-21 10:40:00 -0300 |
commit | 987fabe0a721c3471d35b15db92c5735a52ce632 (patch) | |
tree | 8110d6480c644f7a05643fe1e5fefda979499733 /src/option.c | |
parent | 61b7b2d81a7d66ca91bea5714f966a5d34e53866 (diff) | |
download | rneovim-987fabe0a721c3471d35b15db92c5735a52ce632.tar.gz rneovim-987fabe0a721c3471d35b15db92c5735a52ce632.tar.bz2 rneovim-987fabe0a721c3471d35b15db92c5735a52ce632.zip |
Remove 'textauto' option
For the same reason we removed 'textmode'.
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/option.c b/src/option.c index aee02fa5c0..17428ac697 100644 --- a/src/option.c +++ b/src/option.c @@ -1581,10 +1581,6 @@ static struct vimoption {"terse", NULL, P_BOOL|P_VI_DEF, (char_u *)&p_terse, PV_NONE, {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, - {"textauto", "ta", P_BOOL|P_VIM, - (char_u *)&p_ta, PV_NONE, - {(char_u *)DFLT_TEXTAUTO, (char_u *)TRUE} - SCRIPTID_INIT}, {"textwidth", "tw", P_NUM|P_VI_DEF|P_VIM|P_RBUF, (char_u *)&p_tw, PV_TW, {(char_u *)0L, (char_u *)0L} SCRIPTID_INIT}, @@ -4156,14 +4152,8 @@ did_set_string_option ( } /* 'fileformats' */ else if (varp == &p_ffs) { - if (check_opt_strings(p_ffs, p_ff_values, TRUE) != OK) + if (check_opt_strings(p_ffs, p_ff_values, TRUE) != OK) { errmsg = e_invarg; - else { - /* also change 'textauto' */ - if (*p_ffs == NUL) - p_ta = FALSE; - else - p_ta = TRUE; } } /* 'cryptkey' */ @@ -5249,19 +5239,13 @@ set_bool_option ( if (curwin->w_p_pvw) { win_T *win; - for (win = firstwin; win != NULL; win = win->w_next) + for (win = firstwin; win != NULL; win = win->w_next) { if (win->w_p_pvw && win != curwin) { curwin->w_p_pvw = FALSE; return (char_u *)N_("E590: A preview window already exists"); } + } } - // When 'textauto' is set or reset also change 'fileformats'. - } else if ((int *)varp == &p_ta) { - set_string_option_direct((char_u *)"ffs", - -1, - p_ta ? (char_u *)DFLT_FFS_VIM : (char_u *)"", - OPT_FREE | opt_flags, - 0); } /* |