diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-09-19 14:31:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-19 14:31:10 -0400 |
| commit | 89db07556dbdce97c0c150ed7e47d80e1ddacad3 (patch) | |
| tree | a45ab65e275790c0ed853ad4906bcfa3bcd5154d /src/nvim/testdir/view_util.vim | |
| parent | 2aa662568a995ccfece490ca0f0f0cbdb9d57560 (diff) | |
| parent | f4ce4c1677819472d1b094ef31b8db9c2549e55e (diff) | |
| download | rneovim-89db07556dbdce97c0c150ed7e47d80e1ddacad3.tar.gz rneovim-89db07556dbdce97c0c150ed7e47d80e1ddacad3.tar.bz2 rneovim-89db07556dbdce97c0c150ed7e47d80e1ddacad3.zip | |
Merge pull request #15630 from zeertzjq/vim-8.2.3424
vim-patch:8.1.{1071,1078,1079,1110},8.2.{2640,3424,3425,3437}
Diffstat (limited to 'src/nvim/testdir/view_util.vim')
| -rw-r--r-- | src/nvim/testdir/view_util.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/view_util.vim b/src/nvim/testdir/view_util.vim index 1def201a05..1cdce21602 100644 --- a/src/nvim/testdir/view_util.vim +++ b/src/nvim/testdir/view_util.vim @@ -16,6 +16,7 @@ func Screenline(lnum) return matchstr(line, '^.\{-}\ze\s*$') endfunc +" Get text on the screen, including composing characters. " ScreenLines(lnum, width) or " ScreenLines([start, end], width) function! ScreenLines(lnum, width) abort @@ -29,7 +30,7 @@ function! ScreenLines(lnum, width) abort endif let lines = [] for l in range(start, end) - let lines += [join(map(range(1, a:width), 'nr2char(screenchar(l, v:val))'), '')] + let lines += [join(map(range(1, a:width), 'screenstring(l, v:val)'), '')] endfor return lines endfunction |