diff options
Diffstat (limited to 'src/nvim/marktree.h')
-rw-r--r-- | src/nvim/marktree.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |