2014-10-22 17:35:55 -07:00
|
|
|
-- Test changelist position after splitting window
|
|
|
|
-- Set 'undolevels' to make changelist for sourced file
|
|
|
|
|
2016-04-23 16:53:11 -07:00
|
|
|
local helpers = require('test.functional.helpers')(after_each)
|
2014-10-22 17:35:55 -07:00
|
|
|
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
|
2017-04-08 14:12:26 -07:00
|
|
|
local feed_command, expect = helpers.feed_command, helpers.expect
|
2014-10-22 17:35:55 -07:00
|
|
|
|
|
|
|
describe('changelist', function()
|
|
|
|
setup(clear)
|
|
|
|
|
|
|
|
it('is working', function()
|
|
|
|
insert('1\n2')
|
|
|
|
|
|
|
|
feed('Gkylp')
|
2017-04-08 14:12:26 -07:00
|
|
|
feed_command('set ul=100')
|
2014-10-22 17:35:55 -07:00
|
|
|
|
|
|
|
feed('Gylp')
|
2017-04-08 14:12:26 -07:00
|
|
|
feed_command('set ul=100')
|
2014-10-22 17:35:55 -07:00
|
|
|
|
|
|
|
feed('gg')
|
2017-04-08 14:12:26 -07:00
|
|
|
feed_command('vsplit')
|
|
|
|
feed_command('try', 'normal g;', 'normal ggVGcpass', 'catch', 'normal ggVGcfail', 'endtry')
|
2014-10-22 17:35:55 -07:00
|
|
|
|
|
|
|
expect('pass')
|
|
|
|
end)
|
|
|
|
end)
|