Skip to content

Commit 4faca97

Browse files
vaaaaanquishjonathanslenders
authored andcommitted
fix auto_suggestion
1 parent eda8875 commit 4faca97

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
@@ -29,6 +29,7 @@ def load_auto_suggest_bindings():
2929
def suggestion_available():
3030
app = get_app()
3131
return (app.current_buffer.suggestion is not None and
32+
app.current_buffer.suggestion.text and
3233
app.current_buffer.document.is_cursor_at_the_end)
3334

3435
@handle('c-f', filter=suggestion_available)

0 commit comments

Comments
 (0)