Skip to content

Commit

Permalink
Update R/extent.R
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Müller <[email protected]>
  • Loading branch information
olivroy and krlmlr authored Jun 28, 2024
1 parent 13be514 commit 454ce4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/extent.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
get_extent <- function(x) {
force(x)
x <- ansi_strip(x)
width <- cli::utf8_nchar(x, "width")
width <- utf8_nchar(x, "width")
if (anyNA(width)) {
is_na <- which(is.na(width))
width[is_na] <- nchar(x[is_na], type = "width")
Expand Down

0 comments on commit 454ce4b

Please sign in to comment.