Skip to content

Commit

Permalink
tab key not select completion
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Aug 25, 2024
1 parent 49a372e commit 790f6c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyvim/key_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,10 @@ def enter_command_mode(event):
"""
editor.enter_command_mode()

@kb.add('tab', filter=vi_insert_mode & ~has_focus(editor.command_buffer) & whitespace_before_cursor_on_line)
@kb.add('tab', filter=vi_insert_mode)
def autocomplete_or_indent(event):
"""
When the 'tab' key is pressed with only whitespace character before the
cursor, do autocompletion. Otherwise, insert indentation.
Insert tab key
"""
b = event.app.current_buffer
if b.expand_tab:
Expand Down

0 comments on commit 790f6c7

Please sign in to comment.