mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
docs: clarify that nvim_strwidth counts control characters as one cell (#18802)
This commit is contained in:
@@ -1706,7 +1706,7 @@ nvim_set_vvar({name}, {value}) *nvim_set_vvar()*
|
|||||||
|
|
||||||
nvim_strwidth({text}) *nvim_strwidth()*
|
nvim_strwidth({text}) *nvim_strwidth()*
|
||||||
Calculates the number of display cells occupied by `text`.
|
Calculates the number of display cells occupied by `text`.
|
||||||
<Tab> counts as one cell.
|
Control characters including <Tab> count as one cell.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{text} Some text
|
{text} Some text
|
||||||
|
@@ -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`.
|
/// 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 text Some text
|
||||||
/// @param[out] err Error details, if any
|
/// @param[out] err Error details, if any
|
||||||
|
Reference in New Issue
Block a user