diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-06-21 12:27:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-21 12:27:58 -0400 |
commit | a2ecbc2cc093d6639b8d3e0262909191dfa9aba4 (patch) | |
tree | c186deb62b0c3e69edfb26f312511f178d7a7265 /test/functional/terminal/window_spec.lua | |
parent | 7df9dd33a1497493bc1d78a533473684388c05b0 (diff) | |
parent | 1a8d9e9d542129dca71e7baf8f38bd48008310cf (diff) | |
download | rneovim-a2ecbc2cc093d6639b8d3e0262909191dfa9aba4.tar.gz rneovim-a2ecbc2cc093d6639b8d3e0262909191dfa9aba4.tar.bz2 rneovim-a2ecbc2cc093d6639b8d3e0262909191dfa9aba4.zip |
Merge #4929 from mhinz/fix-term
Fix #3864
Fix #4820
Diffstat (limited to 'test/functional/terminal/window_spec.lua')
-rw-r--r-- | test/functional/terminal/window_spec.lua | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/functional/terminal/window_spec.lua b/test/functional/terminal/window_spec.lua index 7bc739c548..eec8b53f4d 100644 --- a/test/functional/terminal/window_spec.lua +++ b/test/functional/terminal/window_spec.lua @@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') local feed, clear = helpers.feed, helpers.clear local wait = helpers.wait - +local execute = helpers.execute describe('terminal window', function() local screen @@ -12,6 +12,23 @@ describe('terminal window', function() screen = thelpers.screen_setup() end) + it('resets its size when entering terminal buffer', function() + feed('<c-\\><c-n>') + execute('set hidden') + execute('edit foo') + execute('doautoall SessionLoadPost') + execute('silent bnext') + screen:expect([[ + tty ready | + {2: } | + | + | + | + ^ | + :silent bnext | + ]]) + end) + describe('with colorcolumn set', function() before_each(function() feed('<c-\\><c-n>') |