MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / desired_height

Method desired_height

crates/opencode-tui/src/components/prompt.rs:590–595  ·  view source on GitHub ↗
(&self, width: u16)

Source from the content-addressed store, hash-verified

588 }
589
590 pub fn desired_height(&self, width: u16) -> u16 {
591 self.input_display_lines(width)
592 .saturating_add(PROMPT_BLOCK_PAD_TOP)
593 .saturating_add(PROMPT_BLOCK_PAD_BOTTOM)
594 .saturating_add(3)
595 }
596
597 pub fn stash_current(&mut self) -> bool {
598 if self.input.trim().is_empty() {

Callers

nothing calls this directly

Calls 1

input_display_linesMethod · 0.80

Tested by

no test coverage detected