aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-01-07 10:08:51 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-01-16 12:14:00 +0100
commit463cb28a22237e20d603edd55088c41795a4e0c5 (patch)
tree4cf7eb3fcd0063d830ba8ddb1af57e95501c06f1
parentc6864b0d146f017990d6feb8c876784160a25241 (diff)
downloadrneovim-463cb28a22237e20d603edd55088c41795a4e0c5.tar.gz
rneovim-463cb28a22237e20d603edd55088c41795a4e0c5.tar.bz2
rneovim-463cb28a22237e20d603edd55088c41795a4e0c5.zip
docs(column): 'statuscolumn' redraw interaction with 'relativenumber'
-rw-r--r--runtime/doc/options.txt3
-rw-r--r--runtime/lua/vim/_meta/options.lua3
-rw-r--r--src/nvim/options.lua3
3 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 117e9c9ec8..1e390afbbe 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -5937,6 +5937,9 @@ A jump table for the options with a short description can be found at |Q_op|.
when drawing the actual buffer line, and positive when
drawing the wrapped part of a buffer line.
+ When using |v:relnum|, keep in mind that cursor movement by itself will
+ not cause the 'statuscolumn' to update unless |'relativenumber'| is set.
+
NOTE: The %@ click execute function item is supported as well but the
specified function will be the same for each row in the same column.
It cannot be switched out through a dynamic 'statuscolumn' format, the
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 7ad720b6b2..b598b2c99a 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -6373,6 +6373,9 @@ vim.go.sol = vim.go.startofline
--- when drawing the actual buffer line, and positive when
--- drawing the wrapped part of a buffer line.
---
+--- When using `v:relnum`, keep in mind that cursor movement by itself will
+--- not cause the 'statuscolumn' to update unless `'relativenumber'` is set.
+---
--- NOTE: The %@ click execute function item is supported as well but the
--- specified function will be the same for each row in the same column.
--- It cannot be switched out through a dynamic 'statuscolumn' format, the
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 74808485ba..9f5621af41 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -8035,6 +8035,9 @@ return {
when drawing the actual buffer line, and positive when
drawing the wrapped part of a buffer line.
+ When using |v:relnum|, keep in mind that cursor movement by itself will
+ not cause the 'statuscolumn' to update unless |'relativenumber'| is set.
+
NOTE: The %@ click execute function item is supported as well but the
specified function will be the same for each row in the same column.
It cannot be switched out through a dynamic 'statuscolumn' format, the