diff --git a/src/components/create_branch.rs b/src/components/create_branch.rs index c1a30b81..18e7f6a4 100644 --- a/src/components/create_branch.rs +++ b/src/components/create_branch.rs @@ -104,7 +104,8 @@ impl CreateBranchComponent { &strings::create_branch_popup_title(&env.key_config), &strings::create_branch_popup_msg(&env.key_config), true, - ), + ) + .with_input_type(super::InputType::Singleline), theme: env.theme.clone(), key_config: env.key_config.clone(), repo: env.repo.clone(), diff --git a/src/components/fuzzy_find_popup.rs b/src/components/fuzzy_find_popup.rs index 1bc9b052..ea92dfda 100644 --- a/src/components/fuzzy_find_popup.rs +++ b/src/components/fuzzy_find_popup.rs @@ -42,7 +42,8 @@ impl FuzzyFindPopup { /// pub fn new(env: &Environment) -> Self { let mut find_text = - TextInputComponent::new(env, "", "start typing..", false); + TextInputComponent::new(env, "", "start typing..", false) + .with_input_type(super::InputType::Singleline); find_text.embed(); Self { diff --git a/src/components/log_search_popup.rs b/src/components/log_search_popup.rs index f8f29ec8..b4279ac4 100644 --- a/src/components/log_search_popup.rs +++ b/src/components/log_search_popup.rs @@ -58,7 +58,8 @@ impl LogSearchPopupComponent { /// pub fn new(env: &Environment) -> Self { let mut find_text = - TextInputComponent::new(env, "", "search text", false); + TextInputComponent::new(env, "", "search text", false) + .with_input_type(super::InputType::Singleline); find_text.embed(); find_text.enabled(true); diff --git a/src/components/rename_branch.rs b/src/components/rename_branch.rs index e4398888..12411e71 100644 --- a/src/components/rename_branch.rs +++ b/src/components/rename_branch.rs @@ -98,7 +98,8 @@ impl RenameBranchComponent { &strings::rename_branch_popup_title(&env.key_config), &strings::rename_branch_popup_msg(&env.key_config), true, - ), + ) + .with_input_type(super::InputType::Singleline), branch_ref: None, key_config: env.key_config.clone(), } diff --git a/src/components/stashmsg.rs b/src/components/stashmsg.rs index 86c34441..55ae57b2 100644 --- a/src/components/stashmsg.rs +++ b/src/components/stashmsg.rs @@ -135,7 +135,8 @@ impl StashMsgComponent { &strings::stash_popup_title(&env.key_config), &strings::stash_popup_msg(&env.key_config), true, - ), + ) + .with_input_type(super::InputType::Singleline), key_config: env.key_config.clone(), repo: env.repo.clone(), } diff --git a/src/components/tag_commit.rs b/src/components/tag_commit.rs index 79f506c4..e275abb8 100644 --- a/src/components/tag_commit.rs +++ b/src/components/tag_commit.rs @@ -134,7 +134,8 @@ impl TagCommitComponent { &strings::tag_popup_name_title(), &strings::tag_popup_name_msg(), true, - ), + ) + .with_input_type(super::InputType::Singleline), commit_id: None, key_config: env.key_config.clone(), repo: env.repo.clone(),