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 16:41:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-11 16:41:03 -0700
commitba438e3d8318aa72af1fb0998b10c1a2b9b6940b (patch)
tree706b67d231dfc049ebf06fc192c5e94b25ff16a2 /browse-slack
parent0dda717639de844dcc9e2d42473754dc0e9bf8b7 (diff)
downloadmu-ba438e3d8318aa72af1fb0998b10c1a2b9b6940b.tar.gz
.
Diffstat (limited to 'browse-slack')
-rw-r--r--browse-slack/environment.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu
index 282b9f56..e0e9fc5f 100644
--- a/browse-slack/environment.mu
+++ b/browse-slack/environment.mu
@@ -10,6 +10,7 @@ type environment {
 #   item-padding-ver          # in characters
 #   avatar-side               # in pixels
 #   avatar-space-hor          # in characters
+#   search-position-x         # in characters
 #   search-space-ver          # in characters
 #   author-name-padding-ver   # in characters
 #   post-right-coord          # in characters
@@ -79,7 +80,7 @@ fn render-item-list screen: (addr screen), env: (addr environment), _items: (add
 }
 
 fn render-search-input screen: (addr screen), env: (addr environment) {
-  set-cursor-position 0/screen, 2/x 1/y
+  set-cursor-position 0/screen, 0x22/x=search-position-x 1/y
   draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, "search ", 7/fg 0/bg
   draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, "________________________________", 0xf/fg 0/bg
 }