Skip to content

Commit 482cf24

Browse files
authored
Merge pull request #4335 from davep/less-busy-suggest
Delay suggestions until an `Input` is modified
2 parents 459e356 + a68698d commit 482cf24

File tree

4 files changed

+65
-63
lines changed

4 files changed

+65
-63
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
- Fixed issue where narrow TextArea would repeatedly wrap due to scrollbar appearing/disappearing https://github.com/Textualize/textual/pull/4334
1515
- Fix progress bar ETA not updating when setting `total` reactive https://github.com/Textualize/textual/pull/4316
1616

17-
### Changed
17+
### Changed
1818

1919
- ProgressBar won't show ETA until there is at least one second of samples https://github.com/Textualize/textual/pull/4316
20+
- `Input` waits until an edit has been made, after entry to the widget, before offering a suggestion https://github.com/Textualize/textual/pull/4335
2021

2122
## [0.53.1] - 2023-03-18
2223

src/textual/widgets/_input.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ def _on_focus(self, _: Focus) -> None:
519519
if self.cursor_blink:
520520
self._blink_timer.resume()
521521
self.app.cursor_position = self.cursor_screen_offset
522+
self._suggestion = ""
522523

523524
async def _on_key(self, event: events.Key) -> None:
524525
self._cursor_visible = True

0 commit comments

Comments
 (0)