summaryrefslogtreecommitdiff
path: root/Functions/Zle
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle')
-rw-r--r--Functions/Zle/replace-string-again4
1 files changed, 2 insertions, 2 deletions
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}}