about summary refs log tree commit diff stats
path: root/browse-slack
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-11 13:56:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-11 13:59:02 -0700
commiteb1af965730583fac0b3ca342c31bb8c23407d23 (patch)
treec20b79863a0a5771adfb8be5dbe44448aeb90a27 /browse-slack
parent3d5ca62a383426ef5874c616fdc84bad3f90cc48 (diff)
downloadmu-eb1af965730583fac0b3ca342c31bb8c23407d23.tar.gz
.
Diffstat (limited to 'browse-slack')
-rw-r--r--browse-slack/environment.mu6
1 files changed, 5 insertions, 1 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu
index fb944563..3808e2fe 100644
--- a/browse-slack/environment.mu
+++ b/browse-slack/environment.mu
@@ -28,8 +28,12 @@ type tab {
 #   post-right-coord          # in characters
 #   channel-offset-x          # in characters
 
-fn render-environment screen: (addr screen), env: (addr environment), users: (addr array user), channels: (addr array channel), _items: (addr array item) {
+fn render-environment screen: (addr screen), env: (addr environment), users: (addr array user), channels: (addr array channel), items: (addr array item) {
   clear-screen screen
+  render-item-list screen, env, items, users
+}
+
+fn render-item-list screen: (addr screen), env: (addr environment), _items: (addr array item), users: (addr array user) {
   var tmp-width/eax: int <- copy 0
   var tmp-height/ecx: int <- copy 0
   tmp-width, tmp-height <- screen-size screen