From 196cfa0eb0fd592e60078cfa646bf3faf182d674 Mon Sep 17 00:00:00 2001 From: Vladimir Rudnyh Date: Tue, 3 Dec 2013 23:25:52 +0400 Subject: [PATCH] Remove spaces at the end of lines --- README.mkd | 2 +- autosuggestions.zsh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.mkd b/README.mkd index 51724b8..bca2b90 100644 --- a/README.mkd +++ b/README.mkd @@ -29,7 +29,7 @@ this: ```sh # Accept suggestions without leaving insert mode bindkey '^f' vi-forward-word -# or +# or bindkey '^f' vi-forward-blank-word ``` diff --git a/autosuggestions.zsh b/autosuggestions.zsh index f650486..6a187b8 100644 --- a/autosuggestions.zsh +++ b/autosuggestions.zsh @@ -1,5 +1,5 @@ # Fish-like autosuggestions for zsh. Some of the code was based on the code -# for 'predict-on' +# for 'predict-on' # # ```zsh # zle-line-init() { @@ -68,11 +68,11 @@ autosuggest-resume() { local widget # Replace prediction widgets by versions that will also highlight RBUFFER zle -A autosuggest-insert-or-space self-insert - zle -A autosuggest-insert-or-space magic-space - zle -A autosuggest-backward-delete-char backward-delete-char - zle -A autosuggest-accept-line accept-line + zle -A autosuggest-insert-or-space magic-space + zle -A autosuggest-backward-delete-char backward-delete-char + zle -A autosuggest-accept-line accept-line # Hook into some default widgets that should suspend autosuggestion - # automatically + # automatically for widget in $ZLE_AUTOSUGGEST_ACCEPT_WIDGETS; do [[ -z $widgets[$widget] ]] && continue eval "zle -A autosuggest-accept-suggestion $widget"