There was an error while loading. Please reload this page.
1 parent 6f36fe6 commit 41ac572Copy full SHA for 41ac572
prompt_toolkit/application/application.py
@@ -474,7 +474,11 @@ def gather_events():
474
475
def _invalidate_handler(self, sender):
476
"""
477
- Handler to allow invalidate to be called with the correct signature.
+ Handler for invalidate events coming from UIControls.
478
+
479
+ (This handles the difference in signature between event handler and
480
+ `self.invalidate`. It also needs to be a method -not a nested
481
+ function-, so that we can remove it again .)
482
483
self.invalidate()
484
0 commit comments