summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorextrawurst <mail@rusticorn.com>2024-02-15 21:47:03 +0100
committerextrawurst <mail@rusticorn.com>2024-02-15 21:47:03 +0100
commit89ce5406538682366806d4a517e8ace27e5b59ad (patch)
treefa5edc208739f3fdde2433cc48c08407c63e04e4 /src
parent84d855d242a6c2342e8b3a46b0922a09a639ae87 (diff)
fix all places of single line textinput
Diffstat (limited to 'src')
-rw-r--r--src/components/create_branch.rs3
-rw-r--r--src/components/fuzzy_find_popup.rs3
-rw-r--r--src/components/log_search_popup.rs3
-rw-r--r--src/components/rename_branch.rs3
-rw-r--r--src/components/stashmsg.rs3
-rw-r--r--src/components/tag_commit.rs3
6 files changed, 12 insertions, 6 deletions
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(),