From 3cf8ad6f48da3239619e95a52017b1a191789c2a Mon Sep 17 00:00:00 2001 From: watiko Date: Fri, 5 Feb 2016 14:09:03 +0900 Subject: tests: Add test case for legacy test 45 --- test/functional/legacy/045_folding_spec.lua | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'test/functional/legacy/045_folding_spec.lua') diff --git a/test/functional/legacy/045_folding_spec.lua b/test/functional/legacy/045_folding_spec.lua index 79299a253c..04b623ff3b 100644 --- a/test/functional/legacy/045_folding_spec.lua +++ b/test/functional/legacy/045_folding_spec.lua @@ -5,7 +5,7 @@ local feed, insert, clear, execute, expect = helpers.feed, helpers.insert, helpers.clear, helpers.execute, helpers.expect describe('folding', function() - setup(clear) + before_each(clear) it('is working', function() insert([[ @@ -114,4 +114,26 @@ describe('folding', function() 2 0]]) end) + + it('can open after :move', function() + insert([[ + Test fdm=indent and :move bug END + line2 + Test fdm=indent START + line3 + line4]]) + + execute('set noai nosta') + execute('set fdm=indent') + execute('1m1') + feed('2jzc') + execute('m0') + + expect([[ + Test fdm=indent START + line3 + line4 + Test fdm=indent and :move bug END + line2]]) + end) end) -- cgit