diff options
| author | Wayne Davison <wayned@users.sourceforge.net> | 2007-04-18 01:50:59 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@users.sourceforge.net> | 2007-04-18 01:50:59 +0000 |
| commit | 8c55acbebd288359789648baa6791c185f84b6ba (patch) | |
| tree | c6ca9f7cdef39c9eb0912d6a6c84d123340253d5 /Functions | |
| parent | users/11421: %{...%} was broken in completion listings (diff) | |
| download | zsh-8c55acbebd288359789648baa6791c185f84b6ba.tar zsh-8c55acbebd288359789648baa6791c185f84b6ba.tar.gz zsh-8c55acbebd288359789648baa6791c185f84b6ba.tar.bz2 zsh-8c55acbebd288359789648baa6791c185f84b6ba.tar.lz zsh-8c55acbebd288359789648baa6791c185f84b6ba.tar.xz zsh-8c55acbebd288359789648baa6791c185f84b6ba.tar.zst zsh-8c55acbebd288359789648baa6791c185f84b6ba.zip | |
users/11424: don't embed a comment inside a math expression.
Diffstat (limited to 'Functions')
| -rw-r--r-- | Functions/Zle/smart-insert-last-word | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Zle/smart-insert-last-word b/Functions/Zle/smart-insert-last-word index 269bd2808..27b0849ee 100644 --- a/Functions/Zle/smart-insert-last-word +++ b/Functions/Zle/smart-insert-last-word @@ -104,8 +104,8 @@ fi found=$lastcmd[(I)$pattern] done fi - (( found-- > 0 && # Account for 1-based index - (numeric = $#lastcmd - found) )) + # The following accounts for 1-based index + (( found-- > 0 && (numeric = $#lastcmd - found) )) fi } always { HISTNO=$_ilw_hist # Return to current command |
