Skip to content

Commit bb7ac09

Browse files
vaaaaanquishjonathanslenders
authored andcommitted
Fix auto_suggest key binding when suggestion text is empty.
(Commit modified by Jonathan Slenders.)
1 parent 95bb3f8 commit bb7ac09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prompt_toolkit/key_binding/bindings/auto_suggest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def suggestion_available() -> bool:
3131
app = get_app()
3232
return (
3333
app.current_buffer.suggestion is not None
34+
and len(app.current_buffer.suggestion.text) > 0
3435
and app.current_buffer.document.is_cursor_at_the_end
3536
)
3637

0 commit comments

Comments
 (0)