robin/laufey

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

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
658 B24 linesraw
1-- Test for buffer name completion when 'wildoptions' contains "fuzzy"
2-- (Confirm that Vim does not crash)
3local n = require('test.functional.testnvim')()
4local t = require('test.testutil')
5
6local describe, it, before_each = t.describe, t.it, t.before_each
7local clear = n.clear
8local insert = n.insert
9local expect = n.expect
10local feed_command = n.feed_command
11local command = n.command
12
13describe('set wildoptions=fuzzy', function()
14  before_each(clear)
15
16  it('works', function()
17    insert([[I'm alive!]])
18    command('set wildoptions=fuzzy')
19    command('new buf_a')
20    feed_command('b buf_a')
21    command('q!')
22    expect([[I'm alive!]])
23  end)
24end)