Function nvim_oxi_api::strwidth

source ยท
pub fn strwidth(text: &str) -> Result<usize, Error>
Expand description

Binding to nvim_strwidth().

Calculates the number of display cells occupied by text. Control characters like <Tab> count as one cell.