input is always at bottom

pull/6/head
dvkt 5 years ago
parent 4a4fe31bde
commit 36f1c58d8d

@ -123,7 +123,11 @@ impl MenuView {
out.push('\n');
}
if self.lines().len() < rows {
out.push_str(&format!("{}", "\r\n".repeat(rows - 1 - self.lines().len())));
// fill in empty space
out.push_str(&format!(
"{}",
" \r\n".repeat(rows - 1 - self.lines().len())
));
}
out.push_str(&self.input);
out

Loading…
Cancel
Save