mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Tidy up previous word
This commit is contained in:
@@ -320,8 +320,8 @@ class Input(Widget, can_focus=True):
|
|||||||
*_, hit = re.finditer(self._WORD_START, self.value[: self.cursor_position])
|
*_, hit = re.finditer(self._WORD_START, self.value[: self.cursor_position])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
self.cursor_position = 0
|
self.cursor_position = 0
|
||||||
return
|
else:
|
||||||
self.cursor_position = hit.start()
|
self.cursor_position = hit.start()
|
||||||
|
|
||||||
def action_delete_right(self) -> None:
|
def action_delete_right(self) -> None:
|
||||||
value = self.value
|
value = self.value
|
||||||
|
|||||||
Reference in New Issue
Block a user