Mercurial > vim
diff src/testdir/shared.vim @ 15186:2b15ee496cbd v8.1.0603
patch 8.1.0603: the :stop command is not tested
commit https://github.com/vim/vim/commit/e751a5f531c1ceb58dacc7c280fdaae0df2c71c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 16 16:16:10 2018 +0100
patch 8.1.0603: the :stop command is not tested
Problem: The :stop command is not tested.
Solution: Test :stop using a terminal window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Dec 2018 16:30:06 +0100 |
parents | 7ad55ed0a4f3 |
children | f38fcbf343ce |
line wrap: on
line diff
--- a/src/testdir/shared.vim +++ b/src/testdir/shared.vim @@ -345,3 +345,13 @@ func Stop_shell_in_terminal(buf) let job = term_getjob(a:buf) call WaitFor({-> job_status(job) == "dead"}) endfunc + +" Gets the text of a terminal line, using term_scrape() +func Get_terminal_text(bufnr, row) + let list = term_scrape(a:bufnr, a:row) + let text = '' + for item in list + let text .= item.chars + endfor + return text +endfunc