diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-13 15:01:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 15:01:40 +0800 |
commit | 91872d77126f3e04a2addb24deb0f88c529a33f4 (patch) | |
tree | 9adb34a97ef6aff1ce6e3191cc181c8df10f9b9d | |
parent | e3e5fadee03a4b623bc0d5f799a82804526941ad (diff) | |
download | rneovim-91872d77126f3e04a2addb24deb0f88c529a33f4.tar.gz rneovim-91872d77126f3e04a2addb24deb0f88c529a33f4.tar.bz2 rneovim-91872d77126f3e04a2addb24deb0f88c529a33f4.zip |
vim-patch:8.1.0970: text properties test fails when 'encoding' is not utf-8 (#26023)
Problem: Text properties test fails when 'encoding' is not utf-8.
Solution: Compare with original value of 'encoding'. (Christian Brabandt,
closes vim/vim#3986)
https://github.com/vim/vim/commit/ed79d1e348c40e2432802423bf22e4f7b536bf8a
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | test/old/testdir/runtest.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim index 9f52afc8b0..928bf7693f 100644 --- a/test/old/testdir/runtest.vim +++ b/test/old/testdir/runtest.vim @@ -84,7 +84,9 @@ source setup.vim set nocp viminfo+=nviminfo " Use utf-8 by default, instead of whatever the system default happens to be. -" Individual tests can overrule this at the top of the file. +" Individual tests can overrule this at the top of the file and use +" g:orig_encoding if needed. +let g:orig_encoding = &encoding set encoding=utf-8 " REDIR_TEST_TO_NULL has a very permissive SwapExists autocommand which is for |