aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/decoration.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-27 21:36:16 +0800
committerGitHub <noreply@github.com>2023-05-27 21:36:16 +0800
commit510e1f131b56e0423342f597178459a63eb0b810 (patch)
treece15240ad8e95bb6cc49ea0e038147aa8b262903 /src/nvim/decoration.h
parent2d289589b79edd04fc3e338bc90adb7b644eeed2 (diff)
downloadrneovim-510e1f131b56e0423342f597178459a63eb0b810.tar.gz
rneovim-510e1f131b56e0423342f597178459a63eb0b810.tar.bz2
rneovim-510e1f131b56e0423342f597178459a63eb0b810.zip
fix(extmarks): make right_align and win_col work on wrapped line (#23759)
Diffstat (limited to 'src/nvim/decoration.h')
-rw-r--r--src/nvim/decoration.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/decoration.h b/src/nvim/decoration.h
index 95c9655742..565279b21b 100644
--- a/src/nvim/decoration.h
+++ b/src/nvim/decoration.h
@@ -82,7 +82,11 @@ typedef struct {
Decoration decor;
int attr_id; // cached lookup of decor.hl_id
bool virt_text_owned;
- int win_col;
+ /// Screen column to draw the virtual text.
+ /// When -1, the virtual text may be drawn after deciding where.
+ /// When -3, the virtual text should be drawn on a later screen line.
+ /// When INT_MIN, the virtual text should no longer be drawn.
+ int draw_col;
uint64_t ns_id;
uint64_t mark_id;
} DecorRange;