Mercurial > vim
comparison src/testdir/test_fold.vim @ 24184:8ebf8b3dfc08 v8.2.2633
patch 8.2.2633: multi-byte 'fillchars' for folding do not show properly
Commit: https://github.com/vim/vim/commit/196a1f740981e878091fa124a400d1fc4bfa2bb0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 21 14:39:19 2021 +0100
patch 8.2.2633: multi-byte 'fillchars' for folding do not show properly
Problem: Multi-byte 'fillchars' for folding do not show properly.
Solution: Handle multi-byte characters correctly. (Yegappan Lakshmanan,
closes #7983, closes #7955)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Mar 2021 14:45:06 +0100 |
parents | 90d1636a8fcb |
children | c2a234e8c896 |
comparison
equal
deleted
inserted
replaced
24183:daea0d44aef7 | 24184:8ebf8b3dfc08 |
---|---|
1059 | 1059 |
1060 " Use multi-byte characters | 1060 " Use multi-byte characters |
1061 set fillchars+=foldopen:▾,foldsep:│,foldclose:▸ | 1061 set fillchars+=foldopen:▾,foldsep:│,foldclose:▸ |
1062 call s:mbyte_fillchar_tests('▾', '▸', '│') | 1062 call s:mbyte_fillchar_tests('▾', '▸', '│') |
1063 | 1063 |
1064 " Use a mix of multi-byte and single-byte characters | |
1065 set fillchars+=foldopen:¬,foldsep:\|,foldclose:+ | |
1066 call s:mbyte_fillchar_tests('¬', '+', '|') | |
1067 set fillchars+=foldopen:+,foldsep:\|,foldclose:¬ | |
1068 call s:mbyte_fillchar_tests('+', '¬', '|') | |
1069 | |
1064 bw! | 1070 bw! |
1065 set foldenable& fdc& fdm& fillchars& | 1071 set foldenable& fdc& fdm& fillchars& |
1066 endfunc | 1072 endfunc |
1067 | 1073 |
1068 " vim: shiftwidth=2 sts=2 expandtab | 1074 " vim: shiftwidth=2 sts=2 expandtab |