Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(select): restore no_clear_start workaround lost in jj revert (#1044)

worktrunk-bot6fc2f587f525
diff --git a/src/commands/select/mod.rs b/src/commands/select/mod.rs
index a9e76956f..0cf118b3a 100644
--- a/src/commands/select/mod.rs
+++ b/src/commands/select/mod.rs
@@ -154,6 +154,10 @@ pub fn handle_select(
// Configure skim options with Rust-based preview and mode switching keybindings
let options = SkimOptionsBuilder::default()
.height("90%".to_string())
+ // Workaround for skim-tuikit bug: partial-height mode skips smcup but
+ // cleanup still sends rmcup, leaving artifacts. no_clear_start forces
+ // cursor_goto + erase_down cleanup instead. See skim-rs/skim#880.
+ .no_clear_start(true)
.layout("reverse".to_string())
.header_lines(1) // Make first line (header) non-selectable
.multi(false)