aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/encoding_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-06-23 19:02:40 +0200
committerGitHub <noreply@github.com>2016-06-23 19:02:40 +0200
commit65af001f2bcc35f19d64b4d2c1dbcd46d87432e8 (patch)
tree64b24b4f61001c9c892c1e8eaf91e8203d848ff7 /test/functional/ex_cmds/encoding_spec.lua
parentc475e3f8d165e91cbafe4e34ae1ca3c857533703 (diff)
parente8a8342132d47a0f5b94248049238bf16b23715e (diff)
downloadrneovim-65af001f2bcc35f19d64b4d2c1dbcd46d87432e8.tar.gz
rneovim-65af001f2bcc35f19d64b4d2c1dbcd46d87432e8.tar.bz2
rneovim-65af001f2bcc35f19d64b4d2c1dbcd46d87432e8.zip
Merge pull request #4952 from bfredl/counttest
test: fix command_count_spec
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 4d96335d62..e2b3e7e31d 100644
--- a/test/functional/ex_cmds/encoding_spec.lua
+++ b/test/functional/ex_cmds/encoding_spec.lua
@@ -22,7 +22,7 @@ describe('&encoding', function()
end)
it('can be changed before startup', function()
- clear('set enc=latin1')
+ clear('--cmd', 'set enc=latin1')
execute('set encoding=utf-8')
-- error message expected
feed('<cr>')
@@ -32,7 +32,7 @@ describe('&encoding', function()
it('is not changed by `set all&`', function()
-- we need to set &encoding to something non-default. Use 'latin1'
- clear('set enc=latin1')
+ clear('--cmd', 'set enc=latin1')
execute('set all&')
eq('latin1', eval('&encoding'))
eq(4, eval('strwidth("Bär")'))