diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-04-27 21:48:35 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-27 21:48:35 -0400 |
commit | b447b865cdb7b1b2e1185d183ff132574fc87546 (patch) | |
tree | ce709154abd2d7d32829deb104ebda4280a6e128 /test | |
parent | 2d5520fb256b281e7e32cb48f106e205fc494d76 (diff) | |
parent | f931e78fe420884447a7a5d4e17f71a2eeeff3cd (diff) | |
download | rneovim-b447b865cdb7b1b2e1185d183ff132574fc87546.tar.gz rneovim-b447b865cdb7b1b2e1185d183ff132574fc87546.tar.bz2 rneovim-b447b865cdb7b1b2e1185d183ff132574fc87546.zip |
Merge #4591
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/plugin/matchparen_spec.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/functional/plugin/matchparen_spec.lua b/test/functional/plugin/matchparen_spec.lua new file mode 100644 index 0000000000..d8c1f2d392 --- /dev/null +++ b/test/functional/plugin/matchparen_spec.lua @@ -0,0 +1,36 @@ +local helpers = require('test.functional.helpers') +local Screen = require('test.functional.ui.screen') +local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute + +describe('matchparen', function() + local screen + + before_each(function() + clear() + screen = Screen.new(20,5) + screen:attach() + screen:set_default_attr_ignore( {{bold=true, foreground=Screen.colors.Blue}} ) + end) + + it('uses correct column after i_<Up>. Vim patch 7.4.1296', function() + execute('set noai nosi nocin') + execute('runtime plugin/matchparen.vim') + feed('ivoid f_test()<cr>') + feed('{<cr>') + feed('}') + + -- critical part: up + cr should result in an empty line inbetween the + -- brackets... if the bug is there, the empty line will be before the '{' + feed('<up>') + feed('<cr>') + + screen:expect([[ + void f_test() | + { | + ^ | + } | + {1:-- INSERT --} | + ]], {[1] = {bold = true}}) + + end) +end) |