]> granicus.if.org Git - mutt/commit
Fix infinite loop when help is bound to a named key combination.
authorKevin McCarthy <kevin@8t8.us>
Tue, 24 May 2016 19:08:46 +0000 (12:08 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 24 May 2016 19:08:46 +0000 (12:08 -0700)
commit09cf5cbb60e8923f4899c07032f6193a5a195bb7
treef3569f412e1fd1354656f4f35698bbfd54a2e343
parent85282ce8129adcdd590d5fa60406adc72ad33bbe
Fix infinite loop when help is bound to a named key combination.

Commit a07e8215a0ef introduced a bug in km_error_key, which is called
when an unbound key is pressed.

If help is bound to a sequence containing named keys (e.g. <esc>), the
raw (untokenized) string would be pushed back into the unget buffer.
This could lead to an infinite loop of unbound key presses triggering
more unbound keys being put into the unget buffer.

Change km_error_key to tokenize the string before putting it in the unget buffer.

Much thanks to Jiri Bohac for his bug report, analysis, and initial patch!
keymap.c