mail/compose: init cursor at To: header field
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 21m4s Details
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Successful in 10m26s Details

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/301/head
Manos Pitsidianakis 2023-09-11 08:52:18 +03:00
parent 39e99770da
commit 64ba0459ee
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 3 additions and 1 deletions

View File

@ -160,6 +160,8 @@ impl Composer {
pub fn new(context: &Context) -> Self {
let mut pager = Pager::new(context);
pager.set_show_scrollbar(true);
let mut form = FormWidget::default();
form.set_cursor(2);
Composer {
reply_context: None,
account_hash: AccountHash::default(),
@ -172,7 +174,7 @@ impl Composer {
hooks::MISSINGATTACHMENTWARN,
hooks::EMPTYDRAFTWARN,
],
form: FormWidget::default(),
form,
mode: ViewMode::Edit,
#[cfg(feature = "gpgme")]
gpg_state: gpg::GpgComposeState::default(),