Mercurial > vim
view src/testdir/test_listchars.in @ 11002:35d4975a5bb5 v8.0.0390
patch 8.0.0390: when the window scrolls the popup menu may be garbled
commit https://github.com/vim/vim/commit/cb03642399ae4f3c47a006f608a6b912f9d98b5f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 1 12:29:10 2017 +0100
patch 8.0.0390: when the window scrolls the popup menu may be garbled
Problem: When the window scrolls horizontally when the popup menu is
displayed part of it may not be cleared. (Neovim issue https://github.com/vim/vim/issues/6184)
Solution: Remove the menu when the windows scrolled. (closes #1524)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Mar 2017 12:30:03 +0100 |
parents | 095b538d58a6 |
children |
line wrap: on
line source
Tests for 'listchars' display with 'list' and :list STARTTEST :so small.vim :set ff=unix :let g:lines = [] :function GetScreenCharsForLine(lnum) : return join(map(range(1, virtcol('$')), 'nr2char(screenchar(a:lnum, v:val))'), '') :endfunction :nnoremap <expr> GG ":call add(g:lines, GetScreenCharsForLine(".screenrow()."))\<CR>" :set listchars+=tab:>-,space:.,trail:< :set list : /^start:/ :normal! jzt GG GG GG GG GGH: :set listchars-=trail:< GG GG GG GG GG: :put =g:lines :'[,']w! test.out ENDTEST start: aa bb cccc dd ee STARTTEST :set listchars+=trail:< :set nolist : /^start:/ :redir! >> test.out :+1,$list :redir END :q! ENDTEST start: fff gg h iii