File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
from prompt_toolkit .key_binding .vi_state import InputMode , ViState
14
14
from prompt_toolkit .layout .screen import Size
15
15
from prompt_toolkit .terminal .vt100_output import Vt100_Output , _get_size
16
+ from prompt_toolkit .utils import Callback
16
17
17
18
from .arrangement import Arrangement , Pane , Window
18
19
from .commands .commands import handle_command , call_command_handler
@@ -379,7 +380,8 @@ def on_focus_changed():
379
380
mouse_support = Condition (lambda cli : self .enable_mouse_support ),
380
381
use_alternate_screen = True ,
381
382
style = self .style ,
382
- get_title = get_title )
383
+ get_title = get_title ,
384
+ on_invalidate = Callback (lambda cli : self .invalidate ()))
383
385
384
386
cli = CommandLineInterface (
385
387
application = application ,
@@ -423,8 +425,6 @@ def key_pressed():
423
425
# change size, so everything has to be redrawn.)
424
426
self .invalidate ()
425
427
426
- cli .on_invalidate += lambda : self .invalidate ()
427
-
428
428
# Handle start-up comands.
429
429
# (Does initial key bindings.)
430
430
if not self ._startup_done :
You can’t perform that action at this time.
0 commit comments