mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Simplify
This commit is contained in:
@@ -143,7 +143,7 @@ class TextInput(TextWidgetBase, can_focus=True):
|
||||
|
||||
if show_cursor:
|
||||
display_text = self._apply_cursor_to_text(
|
||||
display_text, self._editor.cursor_index - self.visible_range[0]
|
||||
display_text, self._editor.cursor_index - start
|
||||
)
|
||||
return display_text
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user