From 8c55acbebd288359789648baa6791c185f84b6ba Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 18 Apr 2007 01:50:59 +0000 Subject: users/11424: don't embed a comment inside a math expression. --- Functions/Zle/smart-insert-last-word | 4 ++-- 1 file 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 -- cgit 1.4.1