cleanup: Switch to arithmetic comparison

This commit is contained in:
Eric Freese 2019-12-15 06:49:50 -07:00
parent ef657cb38c
commit 5217ed5269
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ _zsh_autosuggest_accept() {
fi fi
# Only accept if the cursor is at the end of the buffer # 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 # Add the suggestion to the buffer
BUFFER="$BUFFER$POSTDISPLAY" BUFFER="$BUFFER$POSTDISPLAY"

View File

@ -390,7 +390,7 @@ _zsh_autosuggest_accept() {
fi fi
# Only accept if the cursor is at the end of the buffer # 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 # Add the suggestion to the buffer
BUFFER="$BUFFER$POSTDISPLAY" BUFFER="$BUFFER$POSTDISPLAY"