This commit is contained in:
Kartik K. Agaram 2021-08-14 15:32:04 -07:00
parent aaf9984039
commit 6706c69407
1 changed files with 3 additions and 0 deletions

View File

@ -2,7 +2,9 @@ type environment {
search-terms: (handle gap-buffer)
tabs: (handle array tab)
current-tab-index: int # index into tabs
# search mode
cursor-in-search?: boolean
# channel mode
cursor-in-channels?: boolean
channel-cursor-index: int
}
@ -295,6 +297,7 @@ fn render-search-input screen: (addr screen), _env: (addr environment) {
}
}
# not used in search mode
fn render-menu screen: (addr screen), _env: (addr environment) {
var env/edi: (addr environment) <- copy _env
var cursor-in-channels?/eax: (addr boolean) <- get env, cursor-in-channels?