Repository: neovim/neovim
File: test/functional/ui/popupmenu_spec.lua (Lua)

Code before:
          {5:-- INSERT --}                                           |
        ]])
        feed('<Esc>')
        command('tabclose!')

        command('vnew win_b')
        feed('Abb bbb <C-X><C-N>')
        screen:expect([[
          bb bbb bb^                  │aa aaa aa                  |
          {1:~     }{12: bb             }{1:     }│{1:~                          }|
          {1:~     }{n: bbb            }{1:     }│{1:~                          }|
          {1:~                          }│{1:~                          }|*15
          {3:win_b [+]                   }{2:[No Name] [+]              }|
          {5:-- Keyword Local completion (^N^P) }{6:match 1 of 2}        |
        ]])
        feed('<F4>')
        screen:expect([[
          bb bbb bb                  │aa aaa a^a                  |
          {1:~                          }│{1:~                          }|*17
          {2:win_b [+]                   }{3:[No Name] [+]              }|
          {5:-- INSERT --}                                           |
        ]])
      end)
    end

    describe("'pumborder' #test", function()
      before_each(function()
        screen:try_resize(30, 11)
        exec([[
          let g:list = [#{word: "one", info: "1info"}, #{word: "two", info: "2info"}, #{word: "three", info: "3info"}]
          funct Omni_test(findstart, base)
            if a:findstart
              return col(".") - 1
            endif
            return g:list
          endfunc
          hi link PmenuBorder FloatBorder
          set omnifunc=Omni_test
          set completeopt-=preview
          set pumborder=rounded
        ]])
      end)

      it('can set border', function()
        feed('Gi<C-x><C-o>')
        if multigrid then
          screen:expect({
            grid = [[
            ## grid 1
              [2:------------------------------]|*10
              [3:------------------------------]|

Review comment (suggestion):
@glepnir you may find `TEST_FILTER` helpful ;)

```suggestion
    describe("'pumborder'", function()
```

Code after:
          {5:-- INSERT --}                                           |
        ]])
        feed('<Esc>')
        command('tabclose!')

        command('vnew win_b')
        feed('Abb bbb <C-X><C-N>')
        screen:expect([[
          bb bbb bb^                  │aa aaa aa                  |
          {1:~     }{12: bb             }{1:     }│{1:~                          }|
          {1:~     }{n: bbb            }{1:     }│{1:~                          }|
          {1:~                          }│{1:~                          }|*15
          {3:win_b [+]                   }{2:[No Name] [+]              }|
          {5:-- Keyword Local completion (^N^P) }{6:match 1 of 2}        |
        ]])
        feed('<F4>')
        screen:expect([[
          bb bbb bb                  │aa aaa a^a                  |
          {1:~                          }│{1:~                          }|*17
          {2:win_b [+]                   }{3:[No Name] [+]              }|
          {5:-- INSERT --}                                           |
        ]])
      end)
    end

    describe("'pumborder'", function()
      before_each(function()
        screen:try_resize(30, 11)
        exec([[
          let g:list = [#{word: "one", info: "1info"}, #{word: "two", info: "2info"}, #{word: "three", info: "3info"}]
          funct Omni_test(findstart, base)
            if a:findstart
              return col(".") - 1
            endif
            return g:list
          endfunc
          hi link PmenuBorder FloatBorder
          set omnifunc=Omni_test
          set completeopt-=preview
          set pumborder=rounded
        ]])
      end)

      it('can set border', function()
        feed('Gi<C-x><C-o>')
        if multigrid then
          screen:expect({
            grid = [[
            ## grid 1
              [2:------------------------------]|*10
              [3:------------------------------]|