comparison src/drawline.c @ 30655:0fbf3e042602 v9.0.0662

patch 9.0.0662: concealed characters do not work correctly Commit: https://github.com/vim/vim/commit/75008661821eee6989476908feaf64a9dea03e05 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 4 22:40:56 2022 +0100 patch 9.0.0662: concealed characters do not work correctly Problem: Concealed characters do not work correctly. Solution: Subtract boguscols instead of adding them. (closes https://github.com/vim/vim/issues/11273)
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Oct 2022 23:45:02 +0200
parents 101f08b49ed3
children 0e58aae55486
comparison
equal deleted inserted replaced
30654:84e4434535d6 30655:0fbf3e042602
3687 || (wlv.n_extra != 0 && (wlv.c_extra != NUL 3687 || (wlv.n_extra != 0 && (wlv.c_extra != NUL
3688 || *wlv.p_extra != NUL))) 3688 || *wlv.p_extra != NUL)))
3689 ) 3689 )
3690 { 3690 {
3691 #ifdef FEAT_CONCEAL 3691 #ifdef FEAT_CONCEAL
3692 wlv.col -= wlv.boguscols;
3693 wlv_screen_line(wp, &wlv, FALSE);
3692 wlv.col += wlv.boguscols; 3694 wlv.col += wlv.boguscols;
3693 wlv_screen_line(wp, &wlv, FALSE);
3694 wlv.col -= wlv.boguscols;
3695 wlv.boguscols = 0; 3695 wlv.boguscols = 0;
3696 #else 3696 #else
3697 wlv_screen_line(wp, &wlv, FALSE); 3697 wlv_screen_line(wp, &wlv, FALSE);
3698 #endif 3698 #endif
3699 ++wlv.row; 3699 ++wlv.row;