On Sat, Nov 07, 2015 at 03:58:45PM -0800, Kevin J. McCarthy wrote:
> My question is if, inside mutt_multi_choice(), getch() can return 0
> ("NUL").Just to answer my own question, yes, getch() can return 0. In urxvt, I can enter the raw hex using ctrl-shift, and debug logs confirmed ch.ch was 0. > If so, should it be handled the same as an abort (<0) or as "not one > of the choices" and just loop again? Right now, it would match the > '\0' in letters and return an index all the callers weren't expecting. For now, I'll treat it the same as abort, but I'm open to arguments to the contrary. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA http://www.8t8.us/configs/gpg-key-transition-statement.txt
signature.asc
Description: PGP signature
