diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-12 20:22:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 20:22:28 +0100 |
commit | 73dffc5053c06a81373c1f0f9344bfd76352b345 (patch) | |
tree | 84424f03bc722d2ce3b695132dc5a4b8a1d3b02d /src/nvim/ui_compositor.c | |
parent | 9b4383261a3de874969b7df89d32eaeb92ab8abf (diff) | |
parent | e50d0b6fc19fe7555651166b73aff9c3703ef11a (diff) | |
download | rneovim-73dffc5053c06a81373c1f0f9344bfd76352b345.tar.gz rneovim-73dffc5053c06a81373c1f0f9344bfd76352b345.tar.bz2 rneovim-73dffc5053c06a81373c1f0f9344bfd76352b345.zip |
Merge #9589 from justinmk/cterm-pumblend
UI: 'pumblend' for cterm (256-color TUI)
Diffstat (limited to 'src/nvim/ui_compositor.c')
-rw-r--r-- | src/nvim/ui_compositor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ui_compositor.c b/src/nvim/ui_compositor.c index 59ae9c34ec..c7ba0306e4 100644 --- a/src/nvim/ui_compositor.c +++ b/src/nvim/ui_compositor.c @@ -259,9 +259,10 @@ static void compose_line(Integer row, Integer startcol, Integer endcol, memcpy(linebuf+(col-startcol), grid->chars+off, n * sizeof(*linebuf)); memcpy(attrbuf+(col-startcol), grid->attrs+off, n * sizeof(*attrbuf)); + // 'pumblend' if (grid != &default_grid && p_pb) { for (int i = col-(int)startcol; i < until-startcol; i++) { - bool thru = strequal((char *)linebuf[i], " "); + bool thru = strequal((char *)linebuf[i], " "); // negative space attrbuf[i] = (sattr_T)hl_blend_attrs(bg_attrs[i], attrbuf[i], thru); if (thru) { memcpy(linebuf[i], bg_line[i], sizeof(linebuf[i])); |