mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-23 10:21:15 +01:00
cleanup: Switch to arithmetic comparison
This commit is contained in:
parent
ef657cb38c
commit
5217ed5269
2 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ _zsh_autosuggest_accept() {
|
|||
fi
|
||||
|
||||
# Only accept if the cursor is at the end of the buffer
|
||||
if [[ $CURSOR = $max_cursor_pos ]]; then
|
||||
if (( $CURSOR == $max_cursor_pos )); then
|
||||
# Add the suggestion to the buffer
|
||||
BUFFER="$BUFFER$POSTDISPLAY"
|
||||
|
||||
|
|
|
@ -390,7 +390,7 @@ _zsh_autosuggest_accept() {
|
|||
fi
|
||||
|
||||
# Only accept if the cursor is at the end of the buffer
|
||||
if [[ $CURSOR = $max_cursor_pos ]]; then
|
||||
if (( $CURSOR == $max_cursor_pos )); then
|
||||
# Add the suggestion to the buffer
|
||||
BUFFER="$BUFFER$POSTDISPLAY"
|
||||
|
||||
|
|
Loading…
Reference in a new issue