#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
-----------------------------+--------------------------------
Changes (by Kevin McCarthy <kevin@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"87911ba95daed80b9edb4aa0622379f01e0589ff"
 6798:87911ba95dae]:
 {{{
 #!CommitTicketReference repository=""
 revision="87911ba95daed80b9edb4aa0622379f01e0589ff"
 Don't abort the menu editor on sigwinch. (closes #3875)

 getch() will return ERR on sigwinch when timeout() is called with a
 positive value.  mutt_getch() will therefore return ch==-2 for both a
 timeout and a sigwinch in this case.

 The imap code in km_dokey() exits out of the ImapKeepalive loop for a
 SigWinch, and was skipping past the check for MENU_EDITOR and
 tmp.ch==-2.  Move this check below the gotkey: label so the
 ImapKeepalive loop behaves the same as the Timeout code.

 Thanks to nicop for reporting the problem and for the initial patch!
 }}}

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

Reply via email to