Skip to content

Commit 50bf97c

Browse files
committed
🩹 fix: cursor to end
1 parent e8abe7f commit 50bf97c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/textinput.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ impl TextInputComponent {
8181

8282
pub fn move_cursor_to_end(&mut self) {
8383
if let Some(ta) = &mut self.textarea {
84-
for _ in 0..100 {
85-
ta.move_cursor(CursorMove::Forward);
86-
}
84+
ta.move_cursor(CursorMove::End);
8785
}
8886
}
8987

src/popups/conventional_commit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,9 @@ impl ConventionalCommitPopup {
598598
self.queue.push(
599599
crate::queue::InternalEvent::AddCommitMessage(
600600
format!(
601-
"{emoji} {commit_type}{}{} {short_msg}",
601+
"{emoji} {commit_type}{}{}{short_msg}",
602602
if self.is_breaking { "!" } else { "" },
603-
if short_msg.is_empty() { "" } else { ":" },
603+
if short_msg.is_empty() { "" } else { ": " },
604604
),
605605
),
606606
);

0 commit comments

Comments
 (0)