Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
input: snip the
recordmacro
and runmacro
keystrokes in a better way
When recording a macro over a laggy connection or on a slow, overloaded computer, several keystrokes could be recorded in one burst, and if any but the last of those keystrokes was the shortcut for `runmacro`, then running the macro would lead to an infinite loop and nano would hang. This new implementation of snipping the "last keystroke" will, however, snip *too many* keystrokes when several of them were recorded at once and `runmacro` or `recordmacro` was among them, resulting in a cropped and thus misrecorded macro. But... that's better than hanging. In general, though, the user should be slow and deliberate when recording a macro: waiting for nano to have processed the last keystroke before typing the next. This fixes https://savannah.gnu.org/bugs/?65649. The issue was reported by `correctmost`. Problem existed since version 2.9.0, since macros were introduced.
- Loading branch information