robin/laufey

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

robinmerge: 1dc9728daa1d8a2702

master
23.3 KiB589 linesraw
1local n = require('test.functional.testnvim')()
2local t = require('test.testutil')
3local Screen = require('test.functional.ui.screen')
4
5local describe, it, before_each = t.describe, t.it, t.before_each
6local clear = n.clear
7local exec = n.exec
8local feed = n.feed
9local command = n.command
10
11describe('display', function()
12  before_each(clear)
13
14  -- oldtest: Test_display_scroll_at_topline()
15  it('scroll when modified at topline vim-patch:8.2.1488', function()
16    local screen = Screen.new(20, 4)
17    command([[call setline(1, repeat('a', 21))]])
18    feed('O')
19    screen:expect([[
20      ^                    |
21      aaaaaaaaaaaaaaaaaaaa|
22      a                   |
23      {5:-- INSERT --}        |
24    ]])
25  end)
26
27  -- oldtest: Test_display_scroll_update_visual()
28  it('scrolling when modified at topline in Visual mode vim-patch:8.2.4626', function()
29    local screen = Screen.new(60, 8)
30    exec([[
31      set scrolloff=0
32      call setline(1, repeat(['foo'], 10))
33      call sign_define('foo', { 'text': '>' })
34      call sign_place(1, 'bar', 'foo', bufnr(), { 'lnum': 2 })
35      call sign_place(2, 'bar', 'foo', bufnr(), { 'lnum': 1 })
36      autocmd CursorMoved * if getcurpos()[1] == 2 | call sign_unplace('bar', { 'id': 1 }) | endif
37    ]])
38    feed('VG7kk')
39    screen:expect([[
40      {7:  }{17:^foo}                                                       |
41      {7:  }foo                                                       |*6
42      {5:-- VISUAL LINE --}                                           |
43    ]])
44  end)
45
46  -- oldtest: Test_display_scroll_setline()
47  it('scrolling with sign_unplace() and setline() in CursorMoved', function()
48    local screen = Screen.new(20, 15)
49    exec([[
50      setlocal scrolloff=5 signcolumn=yes
51      call setline(1, range(1, 100))
52      call sign_define('foo', #{text: '>'})
53      call sign_place(1, 'bar', 'foo', bufnr(), #{lnum: 71})
54      call sign_place(2, 'bar', 'foo', bufnr(), #{lnum: 72})
55      call sign_place(3, 'bar', 'foo', bufnr(), #{lnum: 73})
56      call sign_place(4, 'bar', 'foo', bufnr(), #{lnum: 74})
57      call sign_place(5, 'bar', 'foo', bufnr(), #{lnum: 75})
58      normal! G
59      autocmd CursorMoved * if line('.') == 79
60                        \ |   call sign_unplace('bar', #{id: 4})
61                        \ |   call setline(80, repeat('foo', 15))
62                        \ | elseif line('.') == 78
63                        \ |   call setline(72, repeat('bar', 10))
64                        \ | elseif line('.') == 77
65                        \ |   call sign_unplace('bar', #{id: 2})
66                        \ | endif
67    ]])
68    screen:expect([[
69      {7:  }87                |
70      {7:  }88                |
71      {7:  }89                |
72      {7:  }90                |
73      {7:  }91                |
74      {7:  }92                |
75      {7:  }93                |
76      {7:  }94                |
77      {7:  }95                |
78      {7:  }96                |
79      {7:  }97                |
80      {7:  }98                |
81      {7:  }99                |
82      {7:  }^100               |
83                          |
84    ]])
85    feed('19k')
86    screen:expect([[
87      {7:> }75                |
88      {7:  }76                |
89      {7:  }77                |
90      {7:  }78                |
91      {7:  }79                |
92      {7:  }80                |
93      {7:  }^81                |
94      {7:  }82                |
95      {7:  }83                |
96      {7:  }84                |
97      {7:  }85                |
98      {7:  }86                |
99      {7:  }87                |
100      {7:  }88                |
101                          |
102    ]])
103    feed('k')
104    screen:expect([[
105      {7:> }75                |
106      {7:  }76                |
107      {7:  }77                |
108      {7:  }78                |
109      {7:  }79                |
110      {7:  }^80                |
111      {7:  }81                |
112      {7:  }82                |
113      {7:  }83                |
114      {7:  }84                |
115      {7:  }85                |
116      {7:  }86                |
117      {7:  }87                |
118      {7:  }88                |
119                          |
120    ]])
121    feed('k')
122    screen:expect([[
123      {7:  }74                |
124      {7:> }75                |
125      {7:  }76                |
126      {7:  }77                |
127      {7:  }78                |
128      {7:  }^79                |
129      {7:  }foofoofoofoofoofoo|*2
130      {7:  }foofoofoo         |
131      {7:  }81                |
132      {7:  }82                |
133      {7:  }83                |
134      {7:  }84                |
135      {7:  }85                |
136                          |
137    ]])
138    feed('k')
139    screen:expect([[
140      {7:> }73                |
141      {7:  }74                |
142      {7:> }75                |
143      {7:  }76                |
144      {7:  }77                |
145      {7:  }^78                |
146      {7:  }79                |
147      {7:  }foofoofoofoofoofoo|*2
148      {7:  }foofoofoo         |
149      {7:  }81                |
150      {7:  }82                |
151      {7:  }83                |
152      {7:  }84                |
153                          |
154    ]])
155    feed('k')
156    screen:expect([[
157      {7:  }barbarbarbarbarbar|
158      {7:  }barbarbarbar      |
159      {7:> }73                |
160      {7:  }74                |
161      {7:> }75                |
162      {7:  }76                |
163      {7:  }^77                |
164      {7:  }78                |
165      {7:  }79                |
166      {7:  }foofoofoofoofoofoo|*2
167      {7:  }foofoofoo         |
168      {7:  }81                |
169      {7:  }82                |
170                          |
171    ]])
172  end)
173
174  -- oldtest: Test_display_hit_enter_setline()
175  it('using setline() at hit-enter prompt', function()
176    local screen = Screen.new(40, 8)
177    exec([[
178      call setline(1, range(1, 100))
179    ]])
180    screen:expect([[
181      ^1                                       |
182      2                                       |
183      3                                       |
184      4                                       |
185      5                                       |
186      6                                       |
187      7                                       |
188                                              |
189    ]])
190    feed([[:echo "abc\ndef\nghi"<CR>]])
191    screen:expect([[
192      1                                       |
193      2                                       |
194      3                                       |
195      {3:                                        }|
196      abc                                     |
197      def                                     |
198      ghi                                     |
199      {6:Press ENTER or type command to continue}^ |
200    ]])
201    feed([[:call setline(2, repeat('foo', 35))<CR>]])
202    screen:expect([[
203      ^1                                       |
204      foofoofoofoofoofoofoofoofoofoofoofoofoof|
205      oofoofoofoofoofoofoofoofoofoofoofoofoofo|
206      ofoofoofoofoofoofoofoofoo               |
207      3                                       |
208      4                                       |
209      5                                       |
210                                              |
211    ]])
212  end)
213
214  local function run_test_display_lastline(euro)
215    local screen = Screen.new(75, 10)
216    exec([[
217      call setline(1, ['aaa', 'b'->repeat(200)])
218      set display=truncate
219
220      vsplit
221      100wincmd <
222    ]])
223    local fillchar = '@'
224    if euro then
225      command('set fillchars=lastline:€')
226      fillchar = '€'
227    end
228    screen:expect((([[
229      ^a│aaa                                                                      |
230      a│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*2
231      b│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                   |
232      b│{1:~                                                                        }|*3
233      {1:@}│{1:~                                                                        }|
234      {3:< }{2:[No Name] [+]                                                            }|
235                                                                                 |
236    ]]):gsub('@', fillchar)))
237
238    command('set display=lastline')
239    screen:expect_unchanged()
240
241    command('100wincmd >')
242    screen:expect((([[
243      ^aaa                                                                      │a|
244      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│a|*2
245      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                   │b|
246      {1:~                                                                        }│b|*3
247      {1:~                                                                        }│{1:@}|
248      {3:[No Name] [+]                                                             }{2:<}|
249                                                                                 |
250    ]]):gsub('@', fillchar)))
251
252    command('set display=truncate')
253    screen:expect_unchanged()
254
255    command('close')
256    command('3split')
257    screen:expect((([[
258      ^aaa                                                                        |
259      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
260      {1:@@@                                                                        }|
261      {3:[No Name] [+]                                                              }|
262      aaa                                                                        |
263      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*2
264      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                         |
265      {2:[No Name] [+]                                                              }|
266                                                                                 |
267    ]]):gsub('@', fillchar)))
268
269    command('close')
270    command('2vsplit')
271    screen:expect((([[
272      ^aa│aaa                                                                     |
273      a │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
274      bb│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
275      bb│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                |
276      bb│{1:~                                                                       }|*3
277      {1:@@}│{1:~                                                                       }|
278      {3:<  }{2:[No Name] [+]                                                           }|
279                                                                                 |
280    ]]):gsub('@', fillchar)))
281  end
282
283  -- oldtest: Test_display_lastline()
284  it('display "lastline" works correctly', function()
285    run_test_display_lastline()
286  end)
287  it('display "lastline" works correctly with multibyte fillchar', function()
288    run_test_display_lastline(true)
289  end)
290
291  -- oldtest: Test_display_long_lastline()
292  it('"lastline" shows correct text when end of wrapped line is deleted', function()
293    local screen = Screen.new(35, 14)
294    exec([[
295      set display=lastline smoothscroll scrolloff=0
296      call setline(1, [
297        \'aaaaa'->repeat(150),
298        \'bbbbb '->repeat(7) .. 'ccccc '->repeat(7) .. 'ddddd '->repeat(7)
299      \])
300    ]])
301    feed('736|')
302    screen:expect([[
303      {1:<<<}aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
304      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|*11
305      ^aaaaaaaaaaaaaaa                    |
306                                         |
307    ]])
308    -- The correct part of the last line is moved into view.
309    feed('D')
310    screen:expect([[
311      {1:<<<}aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
312      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|*10
313      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^a|
314      bbbbb bbbbb bbbbb bbbbb bbbbb bb{1:@@@}|
315                                         |
316    ]])
317    -- "w_skipcol" does not change because the topline is still long enough
318    -- to maintain the current skipcol.
319    feed('g04l11gkD')
320    screen:expect([[
321      {1:<<<}^a                               |
322      bbbbb bbbbb bbbbb bbbbb bbbbb bbbbb|
323       bbbbb ccccc ccccc ccccc ccccc cccc|
324      c ccccc ccccc ddddd ddddd ddddd ddd|
325      dd ddddd ddddd ddddd               |
326      {1:~                                  }|*8
327                                         |
328    ]])
329    -- "w_skipcol" is reset to bring the entire topline into view because
330    -- the line length is now smaller than the current skipcol + marker.
331    feed('x')
332    screen:expect([[
333      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|*9
334      aa^a                                |
335      bbbbb bbbbb bbbbb bbbbb bbbbb bbbbb|
336       bbbbb ccccc ccccc ccccc ccccc cccc|
337      c ccccc ccccc ddddd ddddd ddddd {1:@@@}|
338                                         |
339    ]])
340  end)
341
342  -- oldtest: Test_display_cursor_long_line()
343  it("correctly shows line that doesn't fit in the window", function()
344    local screen = Screen.new(75, 8)
345    exec([[
346      call setline(1, ['a', 'b ' .. 'bbbbb'->repeat(150), 'c'])
347      norm $j
348    ]])
349    screen:expect([[
350      {1:<<<}bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
351      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*5
352      b^b                                                                         |
353                                                                                 |
354    ]])
355    -- FIXME: moving the cursor above the topline does not set w_skipcol
356    -- correctly with cpo+=n and zero scrolloff (curs_columns() extra == 1).
357    exec('set number cpo+=n scrolloff=0')
358    feed('$0')
359    screen:expect([[
360      {1:<<<}b^bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
361      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*6
362                                                                                 |
363    ]])
364    -- Going to the start of the line with "b" did not set w_skipcol correctly with 'smoothscroll'.
365    exec('set smoothscroll')
366    feed('$b')
367    screen:expect([[
368      {8:  2 }b ^bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
369      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*6
370                                                                                 |
371    ]])
372    -- Same for "ge".
373    feed('$ge')
374    screen:expect([[
375      {8:  2 }^b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
376      bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*6
377                                                                                 |
378    ]])
379  end)
380
381  -- oldtest: Test_change_wrapped_line_cpo_dollar()
382  it('changing wrapped line with cpo+=$', function()
383    local screen = Screen.new(45, 10)
384    exec([[
385      set cpoptions+=$ laststatus=0
386      call setline(1, ['foo', 'bar',
387            \ repeat('x', 25) .. '!!()!!' .. repeat('y', 25),
388            \ 'FOO', 'BAR'])
389      inoremap <F2> <Cmd>call setline(1, repeat('z', 30))<CR>
390      inoremap <F3> <Cmd>call setline(1, 'foo')<CR>
391      vsplit
392      call cursor(3, 1)
393    ]])
394
395    local s1 = [[
396      foo                   │foo                   |
397      bar                   │bar                   |
398      ^xxxxxxxxxxxxxxxxxxxxxx│xxxxxxxxxxxxxxxxxxxxxx|
399      xxx!!()!!yyyyyyyyyyyyy│xxx!!()!!yyyyyyyyyyyyy|
400      yyyyyyyyyyyy          │yyyyyyyyyyyy          |
401      FOO                   │FOO                   |
402      BAR                   │BAR                   |
403      {1:~                     }│{1:~                     }|*2
404                                                   |
405    ]]
406    screen:expect(s1)
407    feed('ct!')
408    local s2 = [[
409      foo                   │foo                   |
410      bar                   │bar                   |
411      ^xxxxxxxxxxxxxxxxxxxxxx│!!()!!yyyyyyyyyyyyyyyy|
412      xx$!!()!!yyyyyyyyyyyyy│yyyyyyyyy             |
413      yyyyyyyyyyyy          │FOO                   |
414      FOO                   │BAR                   |
415      BAR                   │{1:~                     }|
416      {1:~                     }│{1:~                     }|*2
417      {5:-- INSERT --}                                 |
418    ]]
419    screen:expect(s2)
420    feed('<F2>')
421    screen:expect([[
422      zzzzzzzzzzzzzzzzzzzzzz│zzzzzzzzzzzzzzzzzzzzzz|
423      zzzzzzzz              │zzzzzzzz              |
424      bar                   │bar                   |
425      ^xxxxxxxxxxxxxxxxxxxxxx│!!()!!yyyyyyyyyyyyyyyy|
426      xx$!!()!!yyyyyyyyyyyyy│yyyyyyyyy             |
427      yyyyyyyyyyyy          │FOO                   |
428      FOO                   │BAR                   |
429      BAR                   │{1:~                     }|
430      {1:~                     }│{1:~                     }|
431      {5:-- INSERT --}                                 |
432    ]])
433    feed('<F3>')
434    screen:expect(s2)
435    feed('y')
436    screen:expect([[
437      foo                   │foo                   |
438      bar                   │bar                   |
439      y^xxxxxxxxxxxxxxxxxxxxx│y!!()!!yyyyyyyyyyyyyyy|
440      xx$!!()!!yyyyyyyyyyyyy│yyyyyyyyyy            |
441      yyyyyyyyyyyy          │FOO                   |
442      FOO                   │BAR                   |
443      BAR                   │{1:~                     }|
444      {1:~                     }│{1:~                     }|*2
445      {5:-- INSERT --}                                 |
446    ]])
447    feed('y')
448    screen:expect([[
449      foo                   │foo                   |
450      bar                   │bar                   |
451      yy^xxxxxxxxxxxxxxxxxxxx│yy!!()!!yyyyyyyyyyyyyy|
452      xx$!!()!!yyyyyyyyyyyyy│yyyyyyyyyyy           |
453      yyyyyyyyyyyy          │FOO                   |
454      FOO                   │BAR                   |
455      BAR                   │{1:~                     }|
456      {1:~                     }│{1:~                     }|*2
457      {5:-- INSERT --}                                 |
458    ]])
459    feed('<Esc>')
460    screen:expect([[
461      foo                   │foo                   |
462      bar                   │bar                   |
463      y^y!!()!!yyyyyyyyyyyyyy│yy!!()!!yyyyyyyyyyyyyy|
464      yyyyyyyyyyy           │yyyyyyyyyyy           |
465      FOO                   │FOO                   |
466      BAR                   │BAR                   |
467      {1:~                     }│{1:~                     }|*3
468                                                   |
469    ]])
470
471    command('silent undo')
472    screen:expect(s1)
473    command('source test/old/testdir/samples/matchparen.vim')
474    feed('ct(')
475    screen:expect([[
476      foo                   │foo                   |
477      bar                   │bar                   |
478      ^xxxxxxxxxxxxxxxxxxxxxx│()!!yyyyyyyyyyyyyyyyyy|
479      xxx!$()!!yyyyyyyyyyyyy│yyyyyyy               |
480      yyyyyyyyyyyy          │FOO                   |
481      FOO                   │BAR                   |
482      BAR                   │{1:~                     }|
483      {1:~                     }│{1:~                     }|*2
484      {5:-- INSERT --}                                 |
485    ]])
486    feed('y')
487    screen:expect([[
488      foo                   │foo                   |
489      bar                   │bar                   |
490      y^xxxxxxxxxxxxxxxxxxxxx│y()!!yyyyyyyyyyyyyyyyy|
491      xxx!$()!!yyyyyyyyyyyyy│yyyyyyyy              |
492      yyyyyyyyyyyy          │FOO                   |
493      FOO                   │BAR                   |
494      BAR                   │{1:~                     }|
495      {1:~                     }│{1:~                     }|*2
496      {5:-- INSERT --}                                 |
497    ]])
498    feed('y')
499    screen:expect([[
500      foo                   │foo                   |
501      bar                   │bar                   |
502      yy^xxxxxxxxxxxxxxxxxxxx│yy()!!yyyyyyyyyyyyyyyy|
503      xxx!$()!!yyyyyyyyyyyyy│yyyyyyyyy             |
504      yyyyyyyyyyyy          │FOO                   |
505      FOO                   │BAR                   |
506      BAR                   │{1:~                     }|
507      {1:~                     }│{1:~                     }|*2
508      {5:-- INSERT --}                                 |
509    ]])
510    feed('<Esc>')
511    screen:expect([[
512      foo                   │foo                   |
513      bar                   │bar                   |
514      y^y()!!yyyyyyyyyyyyyyyy│yy()!!yyyyyyyyyyyyyyyy|
515      yyyyyyyyy             │yyyyyyyyy             |
516      FOO                   │FOO                   |
517      BAR                   │BAR                   |
518      {1:~                     }│{1:~                     }|*3
519                                                   |
520    ]])
521
522    command('silent undo')
523    screen:expect(s1)
524    feed('f(azz<CR>zz<Esc>k0')
525    screen:expect([[
526      foo                   │foo                   |
527      bar                   │bar                   |
528      ^xxxxxxxxxxxxxxxxxxxxxx│xxxxxxxxxxxxxxxxxxxxxx|
529      xxx!!(zz              │xxx!!(zz              |
530      zz)!!yyyyyyyyyyyyyyyyy│zz)!!yyyyyyyyyyyyyyyyy|
531      yyyyyyyy              │yyyyyyyy              |
532      FOO                   │FOO                   |
533      BAR                   │BAR                   |
534      {1:~                     }│{1:~                     }|
535                                                   |
536    ]])
537    feed('ct(')
538    screen:expect([[
539      foo                   │foo                   |
540      bar                   │bar                   |
541      ^xxxxxxxxxxxxxxxxxxxxxx│(zz                   |
542      xxx!$(zz              │zz)!!yyyyyyyyyyyyyyyyy|
543      zz)!!yyyyyyyyyyyyyyyyy│yyyyyyyy              |
544      yyyyyyyy              │FOO                   |
545      FOO                   │BAR                   |
546      BAR                   │{1:~                     }|
547      {1:~                     }│{1:~                     }|
548      {5:-- INSERT --}                                 |
549    ]])
550    feed('y')
551    screen:expect([[
552      foo                   │foo                   |
553      bar                   │bar                   |
554      y^xxxxxxxxxxxxxxxxxxxxx│y(zz                  |
555      xxx!$(zz              │zz)!!yyyyyyyyyyyyyyyyy|
556      zz)!!yyyyyyyyyyyyyyyyy│yyyyyyyy              |
557      yyyyyyyy              │FOO                   |
558      FOO                   │BAR                   |
559      BAR                   │{1:~                     }|
560      {1:~                     }│{1:~                     }|
561      {5:-- INSERT --}                                 |
562    ]])
563    feed('y')
564    screen:expect([[
565      foo                   │foo                   |
566      bar                   │bar                   |
567      yy^xxxxxxxxxxxxxxxxxxxx│yy(zz                 |
568      xxx!$(zz              │zz)!!yyyyyyyyyyyyyyyyy|
569      zz)!!yyyyyyyyyyyyyyyyy│yyyyyyyy              |
570      yyyyyyyy              │FOO                   |
571      FOO                   │BAR                   |
572      BAR                   │{1:~                     }|
573      {1:~                     }│{1:~                     }|
574      {5:-- INSERT --}                                 |
575    ]])
576    feed('<Esc>')
577    screen:expect([[
578      foo                   │foo                   |
579      bar                   │bar                   |
580      y^y(zz                 │yy(zz                 |
581      zz)!!yyyyyyyyyyyyyyyyy│zz)!!yyyyyyyyyyyyyyyyy|
582      yyyyyyyy              │yyyyyyyy              |
583      FOO                   │FOO                   |
584      BAR                   │BAR                   |
585      {1:~                     }│{1:~                     }|*2
586                                                   |
587    ]])
588  end)
589end)