Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c05926

Browse files
committed
Fix accept invisible completions
See `#14137`, I think there are invisible completions and when the current line is a prefix of an existing history entry, we happend to have autocompletions but they are not shown. I need to check how this affects the multiline completions though, and we might need a more general solution.
1 parent a6a4b0a commit 5c05926

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/terminal/shortcuts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def create_identifier(handler: Callable):
203203
Binding(
204204
auto_suggest.accept,
205205
["right"],
206-
"has_suggestion & default_buffer_focused & emacs_like_insert_mode",
206+
"has_suggestion & default_buffer_focused & emacs_like_insert_mode & is_cursor_at_the_end_of_line",
207207
),
208208
Binding(
209209
auto_suggest.accept_word,

0 commit comments

Comments
 (0)