Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: drop scale_name ggplot2 arg and drop fansi dep #663

Merged
merged 9 commits into from
Jul 1, 2024
Prev Previous commit
Next Next commit
Update R/extent.R
Co-authored-by: Kirill Müller <krlmlr@users.noreply.github.com>
  • Loading branch information
olivroy and krlmlr authored Jun 28, 2024
commit 454ce4baca3cabf7a951cc07b6e81824c0cc7719
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
Loading