Bump version to 1.6.2

This commit is contained in:
Ryan Ward
2026-06-04 16:07:24 -05:00
parent 840bc4d244
commit 4ba9706e35
12 changed files with 54 additions and 61 deletions
@@ -268,10 +268,15 @@ impl ShellCommandExecutor {
let block_selector = BlockSelector::RequestedCommandId(action_id.clone());
let command = command.clone();
let delay = if *wait_until_completion {
Some(ShellCommandDelay::OnCompletion)
} else {
None
};
drop(model);
ActionExecution::new_async(
self.action_result_future(block_selector.clone(), None),
self.action_result_future(block_selector.clone(), delay),
move |result, ctx| {
// Remove the senders from the maps.
if let Some(handle) = handle.upgrade(ctx) {
-47
View File
@@ -3194,53 +3194,6 @@ impl BlockList {
self.maintain_pinned_to_bottom();
}
/// Insert a rich content item immediately after the given removable item.
/// Returns true if insertion succeeded.
pub(in crate::terminal) fn insert_rich_content_after_item(
&mut self,
after_item: RemovableBlocklistItem,
item: RichContentItem,
) -> bool {
let Some(current_index) = self
.removable_blocklist_item_positions
.get(&after_item)
.copied()
else {
return false;
};
let view_id = item.view_id;
// Recreate block heights tree with new item inserted.
let (new_tree, inserted_index) = {
let mut cursor = self.block_heights.cursor::<TotalIndex, ()>();
let mut prefix = cursor.slice(&(current_index + 1), SeekBias::Right);
let inserted_index = TotalIndex(prefix.summary().total_count);
prefix.push(BlockHeightItem::RichContent(item));
prefix.push_tree(cursor.suffix());
(prefix, inserted_index)
};
self.block_heights = new_tree;
self.update_block_height_indices(BlockHeightUpdate::Insertion(inserted_index), true);
// If there is an item at the index that we are inserting into,
// we should shift that item forward by one.
self.removable_blocklist_item_positions
.values_mut()
.for_each(|pos| {
if *pos == inserted_index {
pos.0 += 1;
}
});
self.removable_blocklist_item_positions
.insert(RemovableBlocklistItem::RichContent(view_id), inserted_index);
self.event_proxy.send_wakeup_event();
true
}
pub(in crate::terminal) fn set_marked_text(
&mut self,
marked_text: &str,