diff --git a/src/strategies/match_prev_cmd.zsh b/src/strategies/match_prev_cmd.zsh index a0005b2..0516a1e 100644 --- a/src/strategies/match_prev_cmd.zsh +++ b/src/strategies/match_prev_cmd.zsh @@ -3,17 +3,18 @@ # Match Previous Command Suggestion Strategy # #--------------------------------------------------------------------# # Suggests the most recent history item that matches the given -# prefix, and whose preceding history item also matches the most +# prefix and whose preceding history item also matches the most # recently executed command. # -# For example, if your have just executed: -# pwd -# ls foo -# ls bar -# pwd -# And then you start typing 'ls', then the suggestion will be 'ls foo', -# rather than 'ls bar', as your most recently executed command (pwd) -# was followed by 'ls foo' on it's previous invocation. +# For example, suppose your history has the following entries: +# - pwd +# - ls foo +# - ls bar +# - pwd +# +# Given the history list above, when you type 'ls', the suggestion +# will be 'ls foo' rather than 'ls bar' because your most recently +# executed command (pwd) was previously followed by 'ls foo'. # _zsh_autosuggest_strategy_match_prev_cmd() { diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index a37e6b4..9baacbf 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -356,17 +356,18 @@ _zsh_autosuggest_strategy_default() { # Match Previous Command Suggestion Strategy # #--------------------------------------------------------------------# # Suggests the most recent history item that matches the given -# prefix, and whose preceding history item also matches the most +# prefix and whose preceding history item also matches the most # recently executed command. # -# For example, if your have just executed: -# pwd -# ls foo -# ls bar -# pwd -# And then you start typing 'ls', then the suggestion will be 'ls foo', -# rather than 'ls bar', as your most recently executed command (pwd) -# was followed by 'ls foo' on it's previous invocation. +# For example, suppose your history has the following entries: +# - pwd +# - ls foo +# - ls bar +# - pwd +# +# Given the history list above, when you type 'ls', the suggestion +# will be 'ls foo' rather than 'ls bar' because your most recently +# executed command (pwd) was previously followed by 'ls foo'. # _zsh_autosuggest_strategy_match_prev_cmd() {