docs: clarify that nvim_strwidth counts control characters as one cell (#18802)

This commit is contained in:
zeertzjq
2022-05-31 07:06:34 +08:00
committed by GitHub
parent b5dd562e08
commit d404d68c92
2 changed files with 2 additions and 2 deletions

View File

@@ -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