about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_hist.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6bb1c95c5..be3b5ed38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-04-27  Peter Stephenson  <pws@csr.com>
 
+	* 27926: Src/Zle/zle_hist.c: fix completion suffix when inserting
+	last word.
+
 	* 27911: Completion/Base/Core/_main_complete: ensure colouring is
 	not used if not configured when showing old lists.
 
@@ -13078,5 +13081,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4967 $
+* $Revision: 1.4968 $
 *****************************************************
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index 241ef419e..d9586b832 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -634,6 +634,7 @@ insertlastword(char **args)
 	}
     }
 
+    fixsuffix();
     metafy_line();
     if (lastinsert && lastlen &&
 	lastpos <= zlemetacs &&