comparison src/buffer.c @ 19354:1d3b2ce65ae0 v8.2.0235

patch 8.2.0235: draw error when an empty group is removed from 'statusline' Commit: https://github.com/vim/vim/commit/dbe5d361feb65137099644329cf0ecfd4a945a14 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 8 18:35:31 2020 +0100 patch 8.2.0235: draw error when an empty group is removed from 'statusline' Problem: Draw error when an empty group is removed from 'statusline'. Solution: Do not use highlighting from a removed group.
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Feb 2020 18:45:03 +0100
parents 2ef19eed524a
children 804322d6c6ba
comparison
equal deleted inserted replaced
19353:bf41a107b72a 19354:1d3b2ce65ae0
4214 } 4214 }
4215 if (n == curitem && group_start_userhl == group_end_userhl) 4215 if (n == curitem && group_start_userhl == group_end_userhl)
4216 { 4216 {
4217 p = t; 4217 p = t;
4218 l = 0; 4218 l = 0;
4219 // do not use the highlighting from the removed group
4220 for (n = groupitem[groupdepth] + 1; n < curitem; n++)
4221 if (item[n].type == Highlight)
4222 item[n].type = Empty;
4219 } 4223 }
4220 } 4224 }
4221 if (l > item[groupitem[groupdepth]].maxwid) 4225 if (l > item[groupitem[groupdepth]].maxwid)
4222 { 4226 {
4223 // truncate, remove n bytes of text at the start 4227 // truncate, remove n bytes of text at the start