comparison src/screen.c @ 24055:90d1636a8fcb v8.2.2569

patch 8.2.2569: 'fillchars' "stl" and "stlnc" items must be single byte Commit: https://github.com/vim/vim/commit/008bff967f7fcaa6af066f71d65bfbba5ef5c7d3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 4 21:55:58 2021 +0100 patch 8.2.2569: 'fillchars' "stl" and "stlnc" items must be single byte Problem: 'fillchars' "stl" and "stlnc" items must be single byte. Solution: Accept multi-byte characters. (Christian Wellenbrock, Yegappan Lakshmanan, closes #7927)
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Mar 2021 22:00:04 +0100
parents 15408ab5fed7
children 8ebf8b3dfc08
comparison
equal deleted inserted replaced
24054:815636fbcd96 24055:90d1636a8fcb
264 264
265 level = win_foldinfo.fi_level; 265 level = win_foldinfo.fi_level;
266 empty = (fdc == 1) ? 0 : 1; 266 empty = (fdc == 1) ? 0 : 1;
267 267
268 // If the column is too narrow, we start at the lowest level that 268 // If the column is too narrow, we start at the lowest level that
269 // fits and use numbers to indicated the depth. 269 // fits and use numbers to indicate the depth.
270 first_level = level - fdc - closed + 1 + empty; 270 first_level = level - fdc - closed + 1 + empty;
271 if (first_level < 1) 271 if (first_level < 1)
272 first_level = 1; 272 first_level = 1;
273 273
274 for (i = 0; i < MIN(fdc, level); i++) 274 for (i = 0; i < MIN(fdc, level); i++)