diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-01-19 20:11:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-19 20:11:19 +0100 |
commit | 75c2c4e1b4c4fdd907c6858812552b8e85a207fe (patch) | |
tree | cd2668476057512e12d653b0281eb7a8c65b859d /src | |
parent | acaf5d233b9128c4b494cec6ca1bf090dc2f7a56 (diff) | |
parent | b3974e4437a0119ca81c926bd2b6549aca509c13 (diff) | |
download | rneovim-75c2c4e1b4c4fdd907c6858812552b8e85a207fe.tar.gz rneovim-75c2c4e1b4c4fdd907c6858812552b8e85a207fe.tar.bz2 rneovim-75c2c4e1b4c4fdd907c6858812552b8e85a207fe.zip |
Merge pull request #11736 from bfredl/tenc
restore old 'termencoding' behavior
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 7 | ||||
-rw-r--r-- | src/nvim/options.lua | 6 | ||||
-rw-r--r-- | src/nvim/testdir/test_python3.vim | 4 |
3 files changed, 7 insertions, 10 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 0c87a422dc..2871a4b7de 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -4742,13 +4742,6 @@ bool get_tty_option(char *name, char **value) return true; } - if (strequal(name, "tenc") || strequal(name, "termencoding")) { - if (value) { - *value = xstrdup("utf-8"); - } - return true; - } - if (strequal(name, "ttytype")) { if (value) { *value = p_ttytype ? xstrdup(p_ttytype) : xstrdup("nvim"); diff --git a/src/nvim/options.lua b/src/nvim/options.lua index a5a14a1a25..7d080b8d56 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -2489,6 +2489,12 @@ return { defaults={if_true={vi=false}} }, { + full_name='termencoding', abbreviation='tenc', + type='string', scope={'global'}, + vi_def=true, + defaults={if_true={vi=""}} + }, + { full_name='termguicolors', abbreviation='tgc', type='bool', scope={'global'}, vi_def=false, diff --git a/src/nvim/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim index 108f78f976..31e0142bf4 100644 --- a/src/nvim/testdir/test_python3.vim +++ b/src/nvim/testdir/test_python3.vim @@ -175,9 +175,7 @@ endfunc func Test_unicode() " this crashed Vim once - if &tenc != '' - throw "Skipped: 'termencoding' is not empty" - endif + throw "Skipped: nvim does not support changing 'encoding'" set encoding=utf32 py3 print('hello') |