comparison src/drawline.c @ 19501:f872daa2031b v8.2.0308

patch 8.2.0308: 'showbreak' does not work for a very long line Commit: https://github.com/vim/vim/commit/1aa76b8fd06c278fe36c39b0bbe7233c775d7423 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 23 15:17:27 2020 +0100 patch 8.2.0308: 'showbreak' does not work for a very long line Problem: 'showbreak' does not work for a very long line. (John Little) Solution: Check whether 'briopt' contains "sbr". (Ken Takata, closes https://github.com/vim/vim/issues/5523, closes #5684)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Feb 2020 15:30:03 +0100
parents ce8c47ed54e5
children a4be2f9cfb01
comparison
equal deleted inserted replaced
19500:6b592f4a53c1 19501:f872daa2031b
1174 p_extra = NULL; 1174 p_extra = NULL;
1175 c_extra = ' '; 1175 c_extra = ' ';
1176 c_final = NUL; 1176 c_final = NUL;
1177 n_extra = get_breakindent_win(wp, 1177 n_extra = get_breakindent_win(wp,
1178 ml_get_buf(wp->w_buffer, lnum, FALSE)); 1178 ml_get_buf(wp->w_buffer, lnum, FALSE));
1179 if (wp->w_skipcol > 0 && wp->w_p_wrap) 1179 if (wp->w_skipcol > 0 && wp->w_p_wrap && wp->w_p_brisbr)
1180 need_showbreak = FALSE; 1180 need_showbreak = FALSE;
1181 // Correct end of highlighted area for 'breakindent', 1181 // Correct end of highlighted area for 'breakindent',
1182 // required when 'linebreak' is also set. 1182 // required when 'linebreak' is also set.
1183 if (tocol == vcol) 1183 if (tocol == vcol)
1184 tocol += n_extra; 1184 tocol += n_extra;