robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

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