Actually in the case of when typing without `\n` this is not working :( My fault! Keep the current code or if you discover how to fix this scenario it would be awesome!