diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 06:24:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 06:24:52 +0800 |
commit | 9ccc6de8d3ebfec0aebdc6dabdb23dd43f102331 (patch) | |
tree | 94addadacb9161dd4d8f43d5f6a34226a9fed27f /src/nvim/eval.c | |
parent | 1484995a1e5ab29010878fa5ee27c935fec6522f (diff) | |
parent | 54470336ff3ae1cf32daa2815267fe837aff0281 (diff) | |
download | rneovim-9ccc6de8d3ebfec0aebdc6dabdb23dd43f102331.tar.gz rneovim-9ccc6de8d3ebfec0aebdc6dabdb23dd43f102331.tar.bz2 rneovim-9ccc6de8d3ebfec0aebdc6dabdb23dd43f102331.zip |
Merge pull request #21768 from luukvbaal/test-virtline
fix(column)!: ensure 'statuscolumn' works with virtual and wrapped lines
BREAKING CHANGE: In 'statuscolumn' evaluation, `v:wrap` has been
replaced by `v:virtnum`. `v:virtnum` is negative when drawing
virtual lines, zero when drawing the actual buffer line, and
positive when drawing the wrapped part of a buffer line.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index f9825496a5..6d32b71016 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -268,7 +268,7 @@ static struct vimvar { VV(VV__NULL_BLOB, "_null_blob", VAR_BLOB, VV_RO), VV(VV_LUA, "lua", VAR_PARTIAL, VV_RO), VV(VV_RELNUM, "relnum", VAR_NUMBER, VV_RO), - VV(VV_WRAP, "wrap", VAR_BOOL, VV_RO), + VV(VV_VIRTNUM, "virtnum", VAR_NUMBER, VV_RO), }; #undef VV |