aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/encoding_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-05-08 17:17:10 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2017-05-15 07:22:31 +0200
commit8d8b6224d941567aeefc67beb471aea36b8bdc05 (patch)
tree4e055bd8d136971dec0bce040e8f1539c9be21aa /test/functional/ex_cmds/encoding_spec.lua
parentedfe0980f1f3e8258665b4ad688dc9fbd934cfb5 (diff)
downloadrneovim-8d8b6224d941567aeefc67beb471aea36b8bdc05.tar.gz
rneovim-8d8b6224d941567aeefc67beb471aea36b8bdc05.tar.bz2
rneovim-8d8b6224d941567aeefc67beb471aea36b8bdc05.zip
options: make 'highlight' read-only
Diffstat (limited to 'test/functional/ex_cmds/encoding_spec.lua')
-rw-r--r--test/functional/ex_cmds/encoding_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ex_cmds/encoding_spec.lua b/test/functional/ex_cmds/encoding_spec.lua
index 0769259be4..7f2bd78a47 100644
--- a/test/functional/ex_cmds/encoding_spec.lua
+++ b/test/functional/ex_cmds/encoding_spec.lua
@@ -15,7 +15,7 @@ describe('&encoding', function()
feed_command('set encoding=latin1')
-- error message expected
feed('<cr>')
- neq(nil, string.find(eval('v:errmsg'), '^E474:'))
+ neq(nil, string.find(eval('v:errmsg'), '^E519:'))
eq('utf-8', eval('&encoding'))
-- check nvim is still in utf-8 mode
eq(3, eval('strwidth("Bär")'))
@@ -25,7 +25,7 @@ describe('&encoding', function()
clear('--cmd', 'set enc=latin1')
-- error message expected
feed('<cr>')
- neq(nil, string.find(eval('v:errmsg'), '^E474:'))
+ neq(nil, string.find(eval('v:errmsg'), '^E519:'))
eq('utf-8', eval('&encoding'))
eq(3, eval('strwidth("Bär")'))
end)