diff options
Diffstat (limited to 'Functions/Zle')
-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 |