diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-03 11:57:14 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-09-04 10:50:26 +0200 |
commit | e867ac3e527e205416299faa28a74ca758cfc33b (patch) | |
tree | 03314560c5a12ea0ea780a924421b1bcbc264e4c /test | |
parent | 6434a0bf99d1733a295844813db201d533e65883 (diff) | |
download | rneovim-e867ac3e527e205416299faa28a74ca758cfc33b.tar.gz rneovim-e867ac3e527e205416299faa28a74ca758cfc33b.tar.bz2 rneovim-e867ac3e527e205416299faa28a74ca758cfc33b.zip |
Check got_int in msg_multiline_attr
Fixes quitting the pager using `q`.
Fixes https://github.com/neovim/neovim/issues/10923.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/screen_basic_spec.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua index 46f0b5060c..f6faed747c 100644 --- a/test/functional/ui/screen_basic_spec.lua +++ b/test/functional/ui/screen_basic_spec.lua @@ -951,6 +951,46 @@ local function screen_tests(linegrid) | ]]) end) + + describe('more prompt', function() + it('can be quit', function() + command("set more") + feed(':echon join(map(range(0, &lines*2), "v:val"), "\\n")<cr>') + screen:expect{grid=[[ + 0 | + 1 | + 2 | + 3 | + 4 | + 5 | + 6 | + 7 | + 8 | + 9 | + 10 | + 11 | + 12 | + {7:-- More --}^ | + ]]} + feed('q') + screen:expect{grid=[[ + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + | + ]]} + end) + end) end describe("Screen (char-based)", function() |