Skip to content

Commit

Permalink
Remove suffix from BUFFER instead of LBUFFER
Browse files Browse the repository at this point in the history
Fixes #667.
  • Loading branch information
koko-ng committed Dec 15, 2023
1 parent c7b6550 commit 55f7547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Completions/_autocomplete__history_lines
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ _autocomplete__history_lines() {

_autocomplete__history_lines_suffix() {
[[ $KEYS[-1] != $'\C-@' ]] &&
LBUFFER=$LBUFFER[1,-1-$1]
BUFFER=$BUFFER[1,-1-$1]
}

_autocomplete__history_lines "$@"

0 comments on commit 55f7547

Please sign in to comment.