about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Misc/zed2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ec36285dc..71abedb04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-01  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 13107: Functions/Misc/zed: don't reset just-edited trap function
+ 	to old value
+	
 2000-10-30  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 13095: Src/Modules/parameter.c: make assignament to $nameddirs
diff --git a/Functions/Misc/zed b/Functions/Misc/zed
index 68cb33fbe..3cee176a1 100644
--- a/Functions/Misc/zed
+++ b/Functions/Misc/zed
@@ -55,7 +55,7 @@ $(<$dir/$1)
     var="$1() {
 }"
   fi
-  vared var && eval function "$var"
+  vared var && eval "$cleanup ;" function "$var"
 else
   [[ -f $1 ]] && var="$(<$1)"
   while vared var