diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-31 07:06:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 07:06:34 +0800 |
commit | d404d68c929a272eb7ccbc3cc370673e005e2a4b (patch) | |
tree | d3309882e70f32cadc65f8ec6e0f3230fb2f6747 /src/nvim/api/vim.c | |
parent | b5dd562e08727877d973718e7a75804cace259dd (diff) | |
download | rneovim-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 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 5c3c16d6b0..fc3d0549b9 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -480,7 +480,7 @@ Object nvim_notify(String msg, Integer log_level, Dictionary opts, Error *err) } /// Calculates the number of display cells occupied by `text`. -/// <Tab> counts as one cell. +/// Control characters including <Tab> count as one cell. /// /// @param text Some text /// @param[out] err Error details, if any |