about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/prompt.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 45412af1a..04ce046bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-22  Clint Adams  <clint@zsh.org>
+
+	* Stephen Rueger: 21744: unconditionally assume that
+	\t or \n are not part of multi-byte characters.
+
 2005-09-20  Clint Adams  <clint@zsh.org>
 
 	* 21740: Completion/Unix/Command/_quilt: completion for
diff --git a/Src/prompt.c b/Src/prompt.c
index 27a07c574..8bd1ad9de 100644
--- a/Src/prompt.c
+++ b/Src/prompt.c
@@ -859,7 +859,7 @@ countprompt(char *str, int *wp, int *hp, int overf)
 		 * relying on the character set being an extension
 		 * of ASCII so it's safe to test a single byte.
 		 */
-		if (multi) {
+		if (!multi) {
 #endif
 		    if (*str == '\t') {
 			w = (w | 7) + 1;