summary refs log tree commit diff
path: root/Functions/Zle/smart-insert-last-word
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2007-04-18 01:50:59 +0000
committerWayne Davison <wayned@users.sourceforge.net>2007-04-18 01:50:59 +0000
commit8c55acbebd288359789648baa6791c185f84b6ba (patch)
treec6ca9f7cdef39c9eb0912d6a6c84d123340253d5 /Functions/Zle/smart-insert-last-word
parent0e58658d4a04f038c0b2b2f485c58a252a1aa684 (diff)
downloadzsh-8c55acbebd288359789648baa6791c185f84b6ba.tar.gz
zsh-8c55acbebd288359789648baa6791c185f84b6ba.tar.xz
zsh-8c55acbebd288359789648baa6791c185f84b6ba.zip
users/11424: don't embed a comment inside a math expression.
Diffstat (limited to 'Functions/Zle/smart-insert-last-word')
-rw-r--r--Functions/Zle/smart-insert-last-word4
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