When a buffered terminal is used (like Term::buffered_stderr()), the current char won't always be printed if the user is typing a string that doesn't match anything.
This PR fixes this.
Also, moving the flush to outside the loop seems to be more efficient.
When a buffered terminal is used (like
Term::buffered_stderr()
), the current char won't always be printed if the user is typing a string that doesn't match anything.This PR fixes this.
Also, moving the flush to outside the loop seems to be more efficient.