mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-26 18:43:37 +03:00
fix all places of single line textinput
This commit is contained in:
parent
84d855d242
commit
89ce540653
@ -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(),
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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(),
|
||||
}
|
||||
|
@ -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(),
|
||||
}
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user