[ekg2-commit] r4008 - trunk/ekg: trunk/ekg/themes.c

SVN commit svn w toxygen.net
Pon, 2 Cze 2008, 01:48:27 CEST


Author: wiechu
Date: 2008-06-02 01:48:27 +0200 (Mon, 02 Jun 2008)
New Revision: 4008

Modified:
   trunk/ekg/themes.c
Log:
    Don't reset text attributes after %| -- end of prompt. (Use %n%| if you need it)


Modified: trunk/ekg/themes.c
===================================================================
--- trunk/ekg/themes.c	2008-05-29 18:21:25 UTC (rev 4007)
+++ trunk/ekg/themes.c	2008-06-01 23:48:27 UTC (rev 4008)
@@ -719,7 +719,7 @@
 			if ((p = xstrstr(line, "\033[00m"))) {
 				xfree(prompt);
 				if (p != line)
-					prompt = xstrndup(line, (int) (p - line) + 5);
+					prompt = xstrndup(line, (int) (p - line));
 				else
 					prompt = NULL;
 				line = p;



Więcej informacji o liście dyskusyjnej ekg2-commit