#3875: Mutt with imap exits line editor when resized
  Reporter:  nicop           |      Owner:  mutt-dev
      Type:  defect          |     Status:  closed
  Priority:  major           |  Milestone:  1.6
 Component:  user interface  |    Version:  1.7.0
Resolution:  fixed           |   Keywords:  imap editor resize

Comment (by nicop):

 Thanks to you for this changeset, this is a much cleaner solution. I
 thought about moving gotkey label too but I wasn't sure about the
 implications, as this would restart the ImapKeepalive loop, so I went for
 the safer fix.

 Also, it seems that mutt_getch is already waiting for a key other than
 KEY_RESIZE, which is supposed to be sent when the terminal is resized.
 However, mutt overrides the ncurse SigWinch signal handling with his own
 in ''signal.c''. Disabling this does solve the problem, so maybe we could
 temporary disable it during the call to getch?

 Otherwise, this ''while (ch == KEY_RESIZE)'' loop seems useless. Also, in
 this specific case, it may also delay the imap synchronization as each
 getch would reset the timeout, so it might need to be removed at least
 when compiled with --enable-imap.

 This is just some thought I had when investigating this problem that I
 wanted to share. I hope it may be useful.

Ticket URL: <https://dev.mutt.org/trac/ticket/3875#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to