comparison src/popupwin.c @ 29451:057c26b5c33a v9.0.0067

patch 9.0.0067: cannot show virtual text Commit: https://github.com/vim/vim/commit/7f9969c559b51446632ac7e8f76cde07e7d0078d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 25 18:13:54 2022 +0100 patch 9.0.0067: cannot show virtual text Problem: Cannot show virtual text. Solution: Initial changes for virtual text support, using text properties.
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Jul 2022 19:15:06 +0200
parents 827d9f2b7a71
children e134ff00be57
comparison
equal deleted inserted replaced
29450:67f31c24291b 29451:057c26b5c33a
1369 // Count Tabs for what they are worth and compute the length based on 1369 // Count Tabs for what they are worth and compute the length based on
1370 // the maximum width (matters when 'showbreak' is set). 1370 // the maximum width (matters when 'showbreak' is set).
1371 // "margin_width" is added to "len" where it matters. 1371 // "margin_width" is added to "len" where it matters.
1372 if (wp->w_width < maxwidth) 1372 if (wp->w_width < maxwidth)
1373 wp->w_width = maxwidth; 1373 wp->w_width = maxwidth;
1374 len = win_linetabsize(wp, ml_get_buf(wp->w_buffer, lnum, FALSE), 1374 len = win_linetabsize(wp, lnum, ml_get_buf(wp->w_buffer, lnum, FALSE),
1375 (colnr_T)MAXCOL); 1375 (colnr_T)MAXCOL);
1376 wp->w_width = w_width; 1376 wp->w_width = w_width;
1377 1377
1378 if (wp->w_p_wrap) 1378 if (wp->w_p_wrap)
1379 { 1379 {