mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
option: restore termencoding (readonly) #11662
'termencoding' option was removed in abaabd1d03
but some plugins check its value.
This commit is contained in:

committed by
Justin M. Keyes

parent
0c436559df
commit
77b61cb0df
@@ -4737,6 +4737,13 @@ bool get_tty_option(char *name, char **value)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strequal(name, "tenc") || strequal(name, "termencoding")) {
|
||||||
|
if (value) {
|
||||||
|
*value = xstrdup("utf-8");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (strequal(name, "ttytype")) {
|
if (strequal(name, "ttytype")) {
|
||||||
if (value) {
|
if (value) {
|
||||||
*value = p_ttytype ? xstrdup(p_ttytype) : xstrdup("nvim");
|
*value = p_ttytype ? xstrdup(p_ttytype) : xstrdup("nvim");
|
||||||
|
@@ -174,7 +174,6 @@ func Test_Catch_Exception_Message()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_unicode()
|
func Test_unicode()
|
||||||
throw 'skipped: Nvim does not support "termencoding" option and only supports "utf-8" for "encoding" option'
|
|
||||||
" this crashed Vim once
|
" this crashed Vim once
|
||||||
if &tenc != ''
|
if &tenc != ''
|
||||||
throw "Skipped: 'termencoding' is not empty"
|
throw "Skipped: 'termencoding' is not empty"
|
||||||
|
Reference in New Issue
Block a user