Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
maybe PATCH: 21731 broke handling of prompts with newlines in it
- X-seq: zsh-workers 21744
- From: Stephen Rueger <stephen.rueger@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: maybe PATCH: 21731 broke handling of prompts with newlines in it
- Date: Thu, 22 Sep 2005 03:11:44 +0200
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hello!
Disclaimer: I hardly know any C, and this is my first journey into the
Zsh source that didn't end with me giving up totally swamped, please
treat the following accordingly.
The new multibyte aware promptcount seems to have a test backwards that
checks if the special treatment of \n and \t can be skipped because the
shell is in the middle of processing a multibyte character.
This simple patch should solve the problem:
--- Src/prompt.c.old 2005-09-22 02:44:38.000000000 +0200
+++ Src/prompt.c 2005-09-22 02:45:30.000000000 +0200
@@ -859,7 +859,7 @@
* 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;
--
Stephen Rüger
stephen.rueger@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author