changelist_spec.lua 635 B

12345678910111213141516171819202122232425262728
  1. -- Test changelist position after splitting window
  2. -- Set 'undolevels' to make changelist for sourced file
  3. local n = require('test.functional.testnvim')()
  4. local clear, feed, insert = n.clear, n.feed, n.insert
  5. local feed_command, expect = n.feed_command, n.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)