mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #4933 from ZyX-I/fix-matchparen-spec
Make matchparen_spec.lua fail if matchparen is not available
This commit is contained in:
commit
7df9dd33a1
@ -1,20 +1,27 @@
|
|||||||
local helpers = require('test.functional.helpers')(after_each)
|
local helpers = require('test.functional.helpers')(after_each)
|
||||||
|
local plugin_helpers = require('test.functional.plugin.helpers')
|
||||||
local Screen = require('test.functional.ui.screen')
|
local Screen = require('test.functional.ui.screen')
|
||||||
local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute
|
|
||||||
|
local execute = helpers.execute
|
||||||
|
local meths = helpers.meths
|
||||||
|
local feed = helpers.feed
|
||||||
|
local eq = helpers.eq
|
||||||
|
|
||||||
|
local reset = plugin_helpers.reset
|
||||||
|
|
||||||
describe('matchparen', function()
|
describe('matchparen', function()
|
||||||
local screen
|
local screen
|
||||||
|
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
reset()
|
||||||
screen = Screen.new(20,5)
|
screen = Screen.new(20,5)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
screen:set_default_attr_ignore( {{bold=true, foreground=Screen.colors.Blue}} )
|
screen:set_default_attr_ignore( {{bold=true, foreground=Screen.colors.Blue}} )
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('uses correct column after i_<Up>. Vim patch 7.4.1296', function()
|
it('uses correct column after i_<Up>. Vim patch 7.4.1296', function()
|
||||||
execute('set noai nosi nocin')
|
execute('set noautoindent nosmartindent nocindent laststatus=0')
|
||||||
execute('runtime plugin/matchparen.vim')
|
eq(1, meths.get_var('loaded_matchparen'))
|
||||||
feed('ivoid f_test()<cr>')
|
feed('ivoid f_test()<cr>')
|
||||||
feed('{<cr>')
|
feed('{<cr>')
|
||||||
feed('}')
|
feed('}')
|
||||||
|
Loading…
Reference in New Issue
Block a user