diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Functions/Zle/replace-string-again | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index d7e000929..49a2eb69a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-09-08 Peter Stephenson <pws@csr.com> + * unposted: Functions/Zle/replace-string-again: safety on + regexp failures. + * 28244 with typo noted by Mikael and Bart: NEWS: updated 4.3.11 news. @@ -13615,5 +13618,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5073 $ +* $Revision: 1.5074 $ ***************************************************** diff --git a/Functions/Zle/replace-string-again b/Functions/Zle/replace-string-again index 83a24167e..f24c14f88 100644 --- a/Functions/Zle/replace-string-again +++ b/Functions/Zle/replace-string-again @@ -40,8 +40,8 @@ if [[ $curwidget = *(pattern|regex)* ]]; then rep2+=$rep if [[ $curwidget = *regex* ]]; then autoload -Uz regexp-replace - regexp-replace LBUFFER $_replace_string_src $rep2 - regexp-replace RBUFFER $_replace_string_src $rep2 + regexp-replace LBUFFER $_replace_string_src $rep2 || return 1 + regexp-replace RBUFFER $_replace_string_src $rep2 || return 1 else LBUFFER=${LBUFFER//(#bm)$~_replace_string_src/${(e)rep2}} RBUFFER=${RBUFFER//(#bm)$~_replace_string_src/${(e)rep2}} |