From d404d68c929a272eb7ccbc3cc370673e005e2a4b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 31 May 2022 07:06:34 +0800 Subject: docs: clarify that nvim_strwidth counts control characters as one cell (#18802) --- runtime/doc/api.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/doc') 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`. - counts as one cell. + Control characters including count as one cell. Parameters: ~ {text} Some text -- cgit