aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/option.c7
-rw-r--r--src/nvim/testdir/test_python3.vim1
2 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index de25ee3218..a8a4ad6484 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -4737,6 +4737,13 @@ 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/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim
index 948ef0a07f..d0f80b8958 100644
--- a/src/nvim/testdir/test_python3.vim
+++ b/src/nvim/testdir/test_python3.vim
@@ -174,7 +174,6 @@ func Test_Catch_Exception_Message()
endfunc
func Test_unicode()
- throw 'skipped: Nvim does not support "termencoding" option and only supports "utf-8" for "encoding" option'
" this crashed Vim once
if &tenc != ''
throw "Skipped: 'termencoding' is not empty"