1
0
forked from aniani/vim

patch 8.1.0970: text properties test fails when 'encoding' is not utf-8

Problem:    Text properties test fails when 'encoding' is not utf-8.
Solution:   Compare with original value of 'encoding'. (Christian Brabandt,
            closes #3986)
This commit is contained in:
Bram Moolenaar
2019-02-22 14:38:58 +01:00
parent 97c2c05ead
commit ed79d1e348
3 changed files with 7 additions and 2 deletions

View File

@@ -518,7 +518,8 @@ endfunc
" screenshot test with textprop highlighting
funct Test_textprop_screenshots()
if !CanRunVimInTerminal() || &encoding != 'utf-8'
" The Vim running in the terminal needs to use utf-8.
if !CanRunVimInTerminal() || g:orig_encoding != 'utf-8'
return
endif
call writefile([