diff options
author | Ibby <33922797+SleepySwords@users.noreply.github.com> | 2023-03-19 16:31:08 +1100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-05-22 13:49:42 +0200 |
commit | efa9b299a7cb68909e9bcd290e4d12bcb6d0bb03 (patch) | |
tree | 925b19777f7592fe58219124accf66da5c72c981 /src/nvim/plines.h | |
parent | b11a8c1b5d3985479351b34f2078d490cbf59e90 (diff) | |
download | rneovim-efa9b299a7cb68909e9bcd290e4d12bcb6d0bb03.tar.gz rneovim-efa9b299a7cb68909e9bcd290e4d12bcb6d0bb03.tar.bz2 rneovim-efa9b299a7cb68909e9bcd290e4d12bcb6d0bb03.zip |
feat(ui): inline virtual text
vim-patch:9.0.0067: cannot show virtual text
Problem: Cannot show virtual text.
Solution: Initial changes for virtual text support, using text properties.
https://github.com/vim/vim/commit/7f9969c559b51446632ac7e8f76cde07e7d0078d
vim-patch:9.0.0116: virtual text not displayed if 'signcolumn' is "yes"
Problem: Virtual text not displayed if 'signcolumn' is "yes".
Solution: Set c_extra and c_final to NUL.
https://github.com/vim/vim/commit/711483cd1381a4ed848d783ae0a6792d5b04447b
Co-authored-by: bfredl <bjorn.linse@gmail.com>
Diffstat (limited to 'src/nvim/plines.h')
-rw-r--r-- | src/nvim/plines.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/plines.h b/src/nvim/plines.h index 808f6d284e..a15c234bba 100644 --- a/src/nvim/plines.h +++ b/src/nvim/plines.h @@ -11,9 +11,11 @@ typedef struct { win_T *cts_win; char *cts_line; // start of the line char *cts_ptr; // current position in line + int cts_row; bool cts_has_virt_text; // true if if a property inserts text int cts_cur_text_width; // width of current inserted text + MarkTreeIter cts_iter[1]; // TODO(bfredl): iterator in to the marktree for scanning virt text int cts_vcol; // virtual column at current position |