robin/laufey

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

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
686 B27 linesraw
1-- Test for CTRL-W in Insert mode
2
3local n = require('test.functional.testnvim')()
4local t = require('test.testutil')
5
6local describe, it, setup = t.describe, t.it, t.setup
7local clear, feed, expect = n.clear, n.feed, n.expect
8
9describe('CTRL-W in Insert mode', function()
10  setup(clear)
11
12  -- luacheck: ignore 611 (Line contains only whitespaces)
13  it('works for multi-byte characters', function()
14    for i = 1, 6 do
15      feed('o wwwこんにちわ世界ワールドvim ' .. string.rep('<C-w>', i) .. '<esc>')
16    end
17
18    expect([[
19      
20       wwwこんにちわ世界ワールド
21       wwwこんにちわ世界
22       wwwこんにちわ
23       www
24       
25      ]])
26  end)
27end)