* PATCH: Still more prompt truncation problems
@ 2000-03-24 10:02 Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2000-03-24 10:02 UTC (permalink / raw)
To: zsh-workers
Hoping to sneak this in before PWS posts -dev-20 ...
Index: Src/prompt.c
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-3.1/Src/prompt.c,v
retrieving revision 1.13
diff -u -r1.13 prompt.c
--- prompt.c 2000/03/24 09:58:38 1.13
+++ prompt.c 2000/03/24 10:00:24
@@ -768,9 +768,12 @@
truncstr = ztrduppfx(ptr, bp - ptr);
bp = ptr;
+ w = bp - buf;
fm++;
putpromptchar(doprint, endchar);
+ ptr = buf + w; /* putpromptchar() may have realloc()'d */
*bp = '\0';
+
countprompt(ptr, &w, 0, -1);
if (w > trunclen) {
/*
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-03-24 10:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-24 10:02 PATCH: Still more prompt truncation problems Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).