Skip to content

Commit 6284e1a

Browse files
committed
Further gist readability/correctness fixes
1 parent 96a7956 commit 6284e1a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/Terminal/Widgets/Layout.rakumod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Leaf does Dynamic {
157157
"requested: [$.requested.gist()] " ~
158158
"computed: [$.computed.gist()] " ~
159159
"x:{$.x // '*'} y:{$.y // '*' }" ~
160-
(" widget: [$.widget.gist()]" if $.widget)
160+
(" --- [$.widget.gist()]" if $.widget)
161161
}
162162

163163
method all-set(Leaf:D:) { self.is-set }
@@ -194,7 +194,7 @@ class Node does Dynamic {
194194
"computed: [$.computed.gist()] " ~
195195
"x:{$.x // '*'} y:{$.y // '*' }" ~
196196
(" :vertical" if $.vertical) ~
197-
(" widget: [$.widget.gist()]" if $.widget) ~
197+
(" --- [$.widget.gist()]" if $.widget) ~
198198
("\n" ~ @child-gists.join("\n") if @.children)
199199
}
200200

lib/Terminal/Widgets/Widget.rakumod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ class Terminal::Widgets::Widget
7676
my @flags = self.gist-flags.grep(?*);
7777

7878
self.gist-name ~ '|' ~ @flags.join(',')
79-
~ " w:$.w,h:$.h x:$.x,y:$.y,z:$.z xo:$.x-offset,yo:$.y-offset,zo:$.z-offset"
79+
~ " w:$.w,h:$.h x:$.x,y:$.y,z:$.z"
80+
~ " xo:{$.x-offset // '*'},yo:{$.y-offset // '*'},zo:{$.z-offset // '*'}"
8081
}
8182

8283
# Shorted name for gists
@@ -89,7 +90,7 @@ class Terminal::Widgets::Widget
8990
my $is-toplevel = self.toplevel === self;
9091

9192
("id:$.id" if $.id),
92-
((self.is-current-toplevel ?? 'CURRENT TOPLEVEL' !! 'is-toplevel') if $is-toplevel)
93+
((self.is-current-toplevel ?? 'CURRENT-TOPLEVEL' !! 'is-toplevel') if $is-toplevel)
9394
}
9495

9596
#| Bootstrapping: Setting TopLevel's layout

0 commit comments

Comments
 (0)