Skip to content

Commit 8d51dcd

Browse files
rhleejonathanslenders
authored andcommitted
Copy over show_cursor attribute from screen
1 parent 2d816ff commit 8d51dcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/prompt_toolkit/layout/scrollable_pane.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def write_to_screen(
146146
# First, write the content to a virtual screen, then copy over the
147147
# visible part to the real screen.
148148
temp_screen = Screen(default_char=Char(char=" ", style=parent_style))
149+
temp_screen.show_cursor = screen.show_cursor
149150
temp_write_position = WritePosition(
150151
xpos=0, ypos=0, width=virtual_width, height=virtual_height
151152
)

0 commit comments

Comments
 (0)