Mercurial > vim
comparison src/testdir/test_textprop.vim @ 15928:857ce36c8412 v8.1.0970
patch 8.1.0970: text properties test fails when 'encoding' is not utf-8
commit https://github.com/vim/vim/commit/ed79d1e348c40e2432802423bf22e4f7b536bf8a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 22 14:38:58 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 Feb 2019 14:45:07 +0100 |
parents | 3e02464faaac |
children | 176872829dc2 |
comparison
equal
deleted
inserted
replaced
15927:ea530928c116 | 15928:857ce36c8412 |
---|---|
516 call prop_type_delete('comment') | 516 call prop_type_delete('comment') |
517 endfunc | 517 endfunc |
518 | 518 |
519 " screenshot test with textprop highlighting | 519 " screenshot test with textprop highlighting |
520 funct Test_textprop_screenshots() | 520 funct Test_textprop_screenshots() |
521 if !CanRunVimInTerminal() || &encoding != 'utf-8' | 521 " The Vim running in the terminal needs to use utf-8. |
522 if !CanRunVimInTerminal() || g:orig_encoding != 'utf-8' | |
522 return | 523 return |
523 endif | 524 endif |
524 call writefile([ | 525 call writefile([ |
525 \ "call setline(1, ['One two', 'Numbér 123 änd thœn 4¾7.', '--aa--bb--cc--dd--'])", | 526 \ "call setline(1, ['One two', 'Numbér 123 änd thœn 4¾7.', '--aa--bb--cc--dd--'])", |
526 \ "hi NumberProp ctermfg=blue", | 527 \ "hi NumberProp ctermfg=blue", |