neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

changelist_spec.lua (635B)


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