about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_main.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 49dda862f..c592fabb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-03  Oliver Kiddle  <opk@zsh.org>
+
+	* 35674: Src/Zle/zle_main.c: make an undo event for
+	initial buffer contents
+
 2015-07-03  Mikael Magnusson  <mikachu@gmail.com>
 
 	* 35673: Completion/Zsh/Function/_zargs: Improve _zargs
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index fe561fc28..c13e3a0c5 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1206,6 +1206,7 @@ zleread(char **lp, char **rp, int flags, int context, char *init, char *finish)
 	    histline = stackhist;
 	    stackhist = -1;
 	}
+	handleundo();
     }
     /*
      * If main is linked to the viins keymap, we need to register