diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2020-05-05 23:38:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 23:38:15 -0400 |
| commit | f04a9a2c9aa68f98a79b8d7e9917719a8be6049b (patch) | |
| tree | 4cd229a5856e1dfb1ad42bcf7e9ea3e0fb07f3dd /src/nvim/testdir/shared.vim | |
| parent | d2766b06c8fc50d06765c5c607744cc6b5f5ef0a (diff) | |
| parent | ed4df85f6bae488d763b5d0eebbf2db9da25551d (diff) | |
| download | rneovim-f04a9a2c9aa68f98a79b8d7e9917719a8be6049b.tar.gz rneovim-f04a9a2c9aa68f98a79b8d7e9917719a8be6049b.tar.bz2 rneovim-f04a9a2c9aa68f98a79b8d7e9917719a8be6049b.zip | |
Merge #12203 from janlazo/vim-8.2.0648
vim-patch:8.1.{800,868,1581},8.2.{648,649,663,678,681,688,691,692}
Diffstat (limited to 'src/nvim/testdir/shared.vim')
| -rw-r--r-- | src/nvim/testdir/shared.vim | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim index 3875ffc056..b041fdedb1 100644 --- a/src/nvim/testdir/shared.vim +++ b/src/nvim/testdir/shared.vim @@ -1,10 +1,12 @@ " Functions shared by several tests. " Only load this script once. -if exists('*WaitFor') +if exists('*PythonProg') finish endif +source view_util.vim + " {Nvim} " Filepath captured from output may be truncated, like this: " /home/va...estdir/Xtest-tmpdir/nvimxbXN4i/10 @@ -328,17 +330,6 @@ func RunVimPiped(before, after, arguments, pipecmd) return 1 endfunc -" Get line "lnum" as displayed on the screen. -" Trailing white space is trimmed. -func! Screenline(lnum) - let chars = [] - for c in range(1, winwidth(0)) - call add(chars, nr2char(screenchar(a:lnum, c))) - endfor - let line = join(chars, '') - return matchstr(line, '^.\{-}\ze\s*$') -endfunc - func CanRunGui() return has('gui') && ($DISPLAY != "" || has('gui_running')) endfunc |