From 8d7816cf27c4ab08d9eff9e7ce3c541105c30ece Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 13 Oct 2021 21:35:37 +0200 Subject: feat(decorations): support more than one virt_lines block --- src/nvim/marktree.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nvim/marktree.h') diff --git a/src/nvim/marktree.h b/src/nvim/marktree.h index aec5def879..a1dcdf5164 100644 --- a/src/nvim/marktree.h +++ b/src/nvim/marktree.h @@ -78,7 +78,9 @@ typedef struct { #define DECOR_LEVELS 4 #define DECOR_OFFSET 61 #define DECOR_MASK (((uint64_t)(DECOR_LEVELS-1)) << DECOR_OFFSET) -static inline uint8_t mt_decor_level(uint64_t id) { + +static inline uint8_t marktree_decor_level(uint64_t id) +{ return (uint8_t)((id&DECOR_MASK) >> DECOR_OFFSET); } -- cgit