diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-21 15:06:44 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-26 13:00:01 +0100 |
commit | 4ceec30cd0b48f865ffae05811c4862cef4a548a (patch) | |
tree | df0b5272e1560bdd4af78c0697c68a58303242d7 /test/functional/terminal/edit_spec.lua | |
parent | e7bbd35c812d338918d1c23692c70b403205fb30 (diff) | |
download | rneovim-4ceec30cd0b48f865ffae05811c4862cef4a548a.tar.gz rneovim-4ceec30cd0b48f865ffae05811c4862cef4a548a.tar.bz2 rneovim-4ceec30cd0b48f865ffae05811c4862cef4a548a.zip |
terminal: Follow output only if cursor is at end.
Closes #2257
Closes #2636
References #2683
Diffstat (limited to 'test/functional/terminal/edit_spec.lua')
-rw-r--r-- | test/functional/terminal/edit_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/terminal/edit_spec.lua b/test/functional/terminal/edit_spec.lua index 9795e7957d..42a5c768bb 100644 --- a/test/functional/terminal/edit_spec.lua +++ b/test/functional/terminal/edit_spec.lua @@ -38,7 +38,8 @@ describe(':edit term://*', function() meths.set_option('shellcmdflag', 'REP ' .. rep) local rep_size = rep:byte() -- 'a' => 97 local sb = 10 - command('autocmd TermOpen * :setlocal scrollback='..tostring(sb)) + command('autocmd TermOpen * :setlocal scrollback='..tostring(sb) + ..'|call feedkeys("G", "n")') command('edit term://foobar') local bufcontents = {} |