mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Be more forgiving about what a word is
This commit is contained in:
@@ -308,7 +308,7 @@ class Input(Widget, can_focus=True):
|
||||
def action_end(self) -> None:
|
||||
self.cursor_position = len(self.value)
|
||||
|
||||
_WORD_START = re.compile(r"(?<=\s)\w")
|
||||
_WORD_START = re.compile(r"(?<=\W)\w")
|
||||
|
||||
def action_next_word(self) -> None:
|
||||
hit = re.search(self._WORD_START, self.value[self.cursor_position :])
|
||||
|
||||
Reference in New Issue
Block a user