diff options
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r-- | Src/Zle/zle_utils.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 4cdb3c52d..8524fd21e 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -572,10 +572,8 @@ undo(void) static void unapplychange(struct change *ch) { - if(ch->hist != histline) { - remember_edits(); - setline(zle_get_event(histline = ch->hist)); - } + if(ch->hist != histline) + zle_setline(quietgethist(ch->hist)); cs = ch->off; if(ch->ins) foredel(ztrlen(ch->ins)); @@ -613,10 +611,8 @@ redo(void) static void applychange(struct change *ch) { - if(ch->hist != histline) { - remember_edits(); - setline(zle_get_event(histline = ch->hist)); - } + if(ch->hist != histline) + zle_setline(quietgethist(ch->hist)); cs = ch->off; if(ch->del) foredel(ztrlen(ch->del)); |