aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shell
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-10-01 15:37:20 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-10-01 15:37:20 -0300
commit536c0ba27e79929eb30850d8e11f2ed026930ab3 (patch)
tree40873cf933b5ba5cff44d1ea07db2b3f2663020e /test/functional/shell
parentafe8a32be01d006d6c25f69b4aa1b6e92464ab63 (diff)
parent5d185c77726dfff20b87d97897d2bb237e95d95a (diff)
downloadrneovim-536c0ba27e79929eb30850d8e11f2ed026930ab3.tar.gz
rneovim-536c0ba27e79929eb30850d8e11f2ed026930ab3.tar.bz2
rneovim-536c0ba27e79929eb30850d8e11f2ed026930ab3.zip
Merge PR #3360 'More fixes for 0.1'
Diffstat (limited to 'test/functional/shell')
-rw-r--r--test/functional/shell/bang_filter_spec.lua49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/functional/shell/bang_filter_spec.lua b/test/functional/shell/bang_filter_spec.lua
new file mode 100644
index 0000000000..964dbd1029
--- /dev/null
+++ b/test/functional/shell/bang_filter_spec.lua
@@ -0,0 +1,49 @@
+-- Specs for bang/filter commands
+
+local helpers = require('test.functional.helpers')
+local feed, execute, clear = helpers.feed, helpers.execute, helpers.clear
+local mkdir, write_file, rmdir = helpers.mkdir, helpers.write_file, helpers.rmdir
+
+local Screen = require('test.functional.ui.screen')
+
+
+describe('issues', function()
+ local screen
+
+ before_each(function()
+ clear()
+ rmdir('bang_filter_spec')
+ mkdir('bang_filter_spec')
+ write_file('bang_filter_spec/f1', 'f1')
+ write_file('bang_filter_spec/f2', 'f2')
+ write_file('bang_filter_spec/f3', 'f3')
+ screen = Screen.new()
+ screen:attach()
+ end)
+
+ after_each(function()
+ rmdir('bang_filter_spec')
+ end)
+
+ it('#3269 Last line of shell output is not truncated', function()
+ execute([[nnoremap <silent>\l :!ls bang_filter_spec<cr>]])
+ feed([[\l]])
+ screen:expect([[
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ :!ls bang_filter_spec |
+ |
+ f1 |
+ f2 |
+ f3 |
+ Press ENTER or type command to continue^ |
+ ]])
+ end)
+
+end)