Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Completions/_autocomplete__history_lines
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ _autocomplete__history_lines() {
fi

local -Pa suf=( -S '' )
if [[ $WIDGETSTYLE == *-select* && $#matches[@] > 1 ]]; then
# Enable multi-select.
zstyle -t ":autocomplete:$curcontext" append-semicolon; [[ $? != 1 ]] &&
[[ $WIDGETSTYLE == *-select* && $#matches[@] > 1 ]] &&
suf=( -S ';' -R _autocomplete__history_lines_suffix )
fi

local tag=history-lines
_comp_tags=" $tag"
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ a backend for it:
}
```

## Disable automatically added semicolons
Autocomplete adds a semicolon to each line to allow selecting another line afterwards.
The added semicolon get removed on most keystrokes besides <kbd>↑</kbd>.
You can deactivate this feature by setting `append-semicolon` to a non-true value:
```zsh
zstyle ':autocomplete:*' append-semicolon off
```

## Troubleshooting
Try the steps in the
[bug report template](.github/ISSUE_TEMPLATE/bug-report.md).
Expand Down
Loading