summaryrefslogtreecommitdiff
path: root/src/testdir/test_textprop.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-22 14:38:58 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-22 14:38:58 +0100
commited79d1e348c40e2432802423bf22e4f7b536bf8a (patch)
tree07ba2127daae7f89591168d7cc4589fc8fd76901 /src/testdir/test_textprop.vim
parent97c2c05ead689f4a5de986c82531fcbd09295cda (diff)
downloadvim-git-ed79d1e348c40e2432802423bf22e4f7b536bf8a.tar.gz
patch 8.1.0970: text properties test fails when 'encoding' is not utf-8v8.1.0970
Problem: Text properties test fails when 'encoding' is not utf-8. Solution: Compare with original value of 'encoding'. (Christian Brabandt, closes #3986)
Diffstat (limited to 'src/testdir/test_textprop.vim')
-rw-r--r--src/testdir/test_textprop.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 311f30fbf..5ea551750 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -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([