about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-07-03 22:56:03 +0200
committerOliver Kiddle <opk@zsh.org>2015-07-03 22:56:03 +0200
commitacb05d1616328e634c6f9914167b12c75619e828 (patch)
tree4b2e4a5212b614a7f3a2643acc30016d4671a3fa
parent439764a43f7d9a06e2c734984aa321c98dfcc80f (diff)
downloadzsh-acb05d1616328e634c6f9914167b12c75619e828.tar.gz
zsh-acb05d1616328e634c6f9914167b12c75619e828.tar.xz
zsh-acb05d1616328e634c6f9914167b12c75619e828.zip
35674: make an undo event for initial buffer contents
-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