diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-16 16:16:10 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-16 16:16:10 +0100 |
commit | e751a5f531c1ceb58dacc7c280fdaae0df2c71c7 (patch) | |
tree | 2ad9b7d8e5161cdbcba837ec583356bd25c18b2a /src/testdir/shared.vim | |
parent | 2caad3fbbdbf1486a176c9f6bfbc3d9be90e09f7 (diff) |
patch 8.1.0603: the :stop command is not testedv8.1.0603
Problem: The :stop command is not tested.
Solution: Test :stop using a terminal window.
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r-- | src/testdir/shared.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim index 92aacfa345..4546be7f74 100644 --- 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 |