aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-31 07:06:34 +0800
committerGitHub <noreply@github.com>2022-05-31 07:06:34 +0800
commitd404d68c929a272eb7ccbc3cc370673e005e2a4b (patch)
treed3309882e70f32cadc65f8ec6e0f3230fb2f6747 /runtime
parentb5dd562e08727877d973718e7a75804cace259dd (diff)
downloadrneovim-d404d68c929a272eb7ccbc3cc370673e005e2a4b.tar.gz
rneovim-d404d68c929a272eb7ccbc3cc370673e005e2a4b.tar.bz2
rneovim-d404d68c929a272eb7ccbc3cc370673e005e2a4b.zip
docs: clarify that nvim_strwidth counts control characters as one cell (#18802)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 965b8e6492..5a44e90f2a 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1706,7 +1706,7 @@ nvim_set_vvar({name}, {value}) *nvim_set_vvar()*
nvim_strwidth({text}) *nvim_strwidth()*
Calculates the number of display cells occupied by `text`.
- <Tab> counts as one cell.
+ Control characters including <Tab> count as one cell.
Parameters: ~
{text} Some text