Skip to content

Commit fa139e0

Browse files
committed
- unicode lock
- Bindings:
1 parent d60755c commit fa139e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

R/qenv-show.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@
1818
setMethod("show", "qenv", function(object) {
1919
env <- get_env(object)
2020
header <- cli::col_blue(sprintf("<environment: %s>", rlang::env_label(env)))
21-
locked <- if (environmentIsLocked(env)) {
22-
" [L]"
23-
} else {
24-
""
25-
}
2621
parent <- sprintf("Parent: <environment: %s>", rlang::env_label(rlang::env_parent(env)))
27-
cat(cli::style_bold(paste0(header, locked)), sep = "\n")
22+
cat(cli::style_bold(header), "\U1F512", "\n")
2823
cat(parent, "\n")
2924

3025
shown <- ls(object)
26+
if (length(shown > 0L)) cat(cli::style_bold("Bindings:\n"))
3127
lapply(shown, function(x) {
3228
cat(
3329
sprintf(

0 commit comments

Comments
 (0)