about summary refs log tree commit diff
path: root/Src/Zle/zle_utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-02-11 19:32:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-02-11 19:32:21 +0000
commit459953f02973284288c933002fb5a9ef785b52ad (patch)
tree63503562f52cc40f54ce4267962f1f3c18dca96b /Src/Zle/zle_utils.c
parent2c31feef4d7fef24a19e633fbf50b846aeaccb34 (diff)
downloadzsh-459953f02973284288c933002fb5a9ef785b52ad.tar.gz
zsh-459953f02973284288c933002fb5a9ef785b52ad.tar.xz
zsh-459953f02973284288c933002fb5a9ef785b52ad.zip
28671: better cursor positioning after undo
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r--Src/Zle/zle_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index 291bdd3cb..5275bdbf6 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -1085,8 +1085,10 @@ mkundoent(void)
     struct change *ch;
 
     UNMETACHECK();
-    if(lastll == zlell && !ZS_memcmp(lastline, zleline, zlell))
+    if(lastll == zlell && !ZS_memcmp(lastline, zleline, zlell)) {
+	lastcs = zlecs;
 	return;
+    }
     for(pre = 0; pre < sh && zleline[pre] == lastline[pre]; )
 	pre++;
     for(suf = 0; suf < sh - pre &&