Kaynağa Gözat

cleanup: Switch to arithmetic comparison

pull/488/head
Eric Freese 4 yıl önce
ebeveyn
işleme
5217ed5269
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      src/widgets.zsh
  2. +1
    -1
      zsh-autosuggestions.zsh

+ 1
- 1
src/widgets.zsh Dosyayı Görüntüle

@ -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"

+ 1
- 1
zsh-autosuggestions.zsh Dosyayı Görüntüle

@ -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"

Yükleniyor…
İptal
Kaydet