diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2018-05-04 20:54:08 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-04 20:54:08 +0200 | 
| commit | 0a349fd77de5cbf7516f6bc4f0117213b4f52b8b (patch) | |
| tree | fbfc5fd7fa94b73465c39002e6a6d264b425f050 /test/functional/ui/screen_basic_spec.lua | |
| parent | e46534b4230242c0d41831cc7ad16863c976b151 (diff) | |
| parent | 0d037ad978c01b0f57d0fc11da6554dda967b13d (diff) | |
| download | rneovim-0a349fd77de5cbf7516f6bc4f0117213b4f52b8b.tar.gz rneovim-0a349fd77de5cbf7516f6bc4f0117213b4f52b8b.tar.bz2 rneovim-0a349fd77de5cbf7516f6bc4f0117213b4f52b8b.zip | |
Merge pull request #8356 from bfredl/tabmsg
messages: redraw tabline if it was overdrawn by messages
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
| -rw-r--r-- | test/functional/ui/screen_basic_spec.lua | 60 | 
1 files changed, 58 insertions, 2 deletions
| diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua index 7fafd6b352..837934e529 100644 --- a/test/functional/ui/screen_basic_spec.lua +++ b/test/functional/ui/screen_basic_spec.lua @@ -240,8 +240,8 @@ describe('Screen', function()      end)    end) -  describe('tabnew', function() -    it('creates a new buffer', function() +  describe('tabs', function() +    it('tabnew creates a new buffer', function()        command('sp')        command('vsp')        command('vsp') @@ -299,6 +299,62 @@ describe('Screen', function()                                                               |        ]])      end) + +    it('tabline is redrawn after messages', function() +      command('tabnew') +      screen:expect([[ +        {4: [No Name] }{2: [No Name] }{3:                              }{4:X}| +        ^                                                     | +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +                                                             | +      ]]) + +      feed(':echo "'..string.rep('x\\n', 11)..'"<cr>') +      screen:expect([[ +        {1:                                                     }| +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +        x                                                    | +                                                             | +        {7:Press ENTER or type command to continue}^              | +      ]]) + +      feed('<cr>') +      screen:expect([[ +        {4: [No Name] }{2: [No Name] }{3:                              }{4:X}| +        ^                                                     | +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +        {0:~                                                    }| +                                                             | +      ]]) +    end)    end)    describe('insert mode', function() | 
