mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
test: fix command_count_spec
The test hit wait_return if x or .x.swp exists in the project root directory.
This commit is contained in:
@@ -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")'))
|
||||
|
||||
Reference in New Issue
Block a user