comparison src/drawline.c @ 29633:e80174903fdf v9.0.0157

patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop Commit: https://github.com/vim/vim/commit/cba6952e3499f85545c274873c67bb843d3f3518 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 6 21:03:53 2022 +0100 patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop Problem: 'showbreak' displayed below truncated "after" text prop. Solution: Suppress 'showbreak' when "after" prop doesn't wrap.
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Aug 2022 22:15:06 +0200
parents 2f5610696bcd
children 592818fd3110
comparison
equal deleted inserted replaced
29632:ec65284d6f1f 29633:e80174903fdf
1720 text_prop_attr = 0; 1720 text_prop_attr = 0;
1721 if (*ptr == NUL) 1721 if (*ptr == NUL)
1722 // don't combine char attr after EOL 1722 // don't combine char attr after EOL
1723 text_prop_flags &= ~PT_FLAG_COMBINE; 1723 text_prop_flags &= ~PT_FLAG_COMBINE;
1724 #ifdef FEAT_LINEBREAK 1724 #ifdef FEAT_LINEBREAK
1725 if (below || right) 1725 if (below || right || !wrap)
1726 { 1726 {
1727 // no 'showbreak' before "below" text property 1727 // no 'showbreak' before "below" text property
1728 // or after "right" text property 1728 // or after "right" text property
1729 need_showbreak = FALSE; 1729 need_showbreak = FALSE;
1730 dont_use_showbreak = TRUE; 1730 dont_use_showbreak = TRUE;