changelist_spec.lua 679 B

123456789101112131415161718192021222324252627
  1. -- Test changelist position after splitting window
  2. -- Set 'undolevels' to make changelist for sourced file
  3. local helpers = require('test.functional.helpers')(after_each)
  4. local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
  5. local feed_command, expect = helpers.feed_command, helpers.expect
  6. describe('changelist', function()
  7. setup(clear)
  8. it('is working', function()
  9. insert("1\n2")
  10. feed('Gkylp')
  11. feed_command('set ul=100')
  12. feed('Gylp')
  13. feed_command('set ul=100')
  14. feed('gg')
  15. feed_command('vsplit')
  16. feed_command('try', 'normal g;', 'normal ggVGcpass', 'catch', 'normal ggVGcfail', 'endtry')
  17. expect('pass')
  18. end)
  19. end)