diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-14 08:16:17 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-14 08:16:17 -0700 |
commit | fc7eb937f371f86b8969d4a69ecd486daab7c789 (patch) | |
tree | d92fef905e5e2e32b86a473b72b34c13bd1f7a03 /browse-slack | |
parent | 3b1017dae550ae4506a16667dee8d434c0f6e02a (diff) | |
download | mu-fc7eb937f371f86b8969d4a69ecd486daab7c789.tar.gz |
bug in reusing tabs
Diffstat (limited to 'browse-slack')
-rw-r--r-- | browse-slack/environment.mu | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu index b52087ac..85e1a43c 100644 --- a/browse-slack/environment.mu +++ b/browse-slack/environment.mu @@ -804,6 +804,7 @@ fn new-channel-tab _env: (addr environment), channel-index: int, _channels: (add } var current-tab-offset/ecx: (offset tab) <- compute-offset tabs, current-tab-index var current-tab/ecx: (addr tab) <- index tabs, current-tab-offset + clear-object current-tab var current-tab-type/eax: (addr int) <- get current-tab, type copy-to *current-tab, 1/channel var current-tab-channel-index/eax: (addr int) <- get current-tab, channel-index @@ -835,6 +836,7 @@ fn new-search-tab _env: (addr environment), items: (addr item-list) { } var current-tab-offset/ecx: (offset tab) <- compute-offset tabs, current-tab-index var current-tab/ecx: (addr tab) <- index tabs, current-tab-offset + clear-object current-tab var current-tab-type/eax: (addr int) <- get current-tab, type copy-to *current-tab, 2/search var current-tab-search-terms-ah/edx: (addr handle gap-buffer) <- get current-tab, search-terms |