summaryrefslogtreecommitdiff
path: root/Src/prompt.c
AgeCommit message (Collapse)AuthorFilesLines
2006-03-07Changed some structures to avoid gcc's type-punned warnings.Wayne Davison1-1/+1
2006-01-17Tweaked the code that handles %D so that: (1) we don't free() a NULLWayne Davison1-4/+3
pointer (we use zsfree() instead), and (2) we avoid a rare bug that could call free() on same memory twice (e.g. "%D{}%D").
2006-01-13Got rid of some superfluous STOUC() calls (such as the ones I addedWayne Davison1-6/+7
for the arg of calls to nicechar(), which doesn't need this).
2006-01-13A better version of my last change.Wayne Davison1-12/+4
2006-01-13Metafy the output of the ztrftime() string since that's what theWayne Davison1-1/+12
prompt expects and some date names might not be ASCII.
2006-01-12- The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-61/+71
assign it to an int and then check for negativity, as that won't work on a system where an int is larger than a size_t. - When mbrtowc() returns -2 when given all the remaining chars in a string, set an end-of-line flag and avoid calling mbrtowc() again for any of the incomplete characters that remain in the string. - Use STOUC() when passing a char value to nicechar(). - Use "mbs" for the multi-byte state variable name (for consistency). - Be sure to reset the mbs state if mbrtowc() returns -1. - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively).
2005-10-2821943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;Peter Stephenson1-11/+11
use multibyte versions of nicechar wherever possible.
2005-10-23Fix --disable-multibyte compile error.Bart Schaefer1-3/+5
2005-10-21remove a couple of TODOsPeter Stephenson1-94/+19
2005-10-1921890: fix segmentation error in left prompt truncation and a couple of minorPeter Stephenson1-1/+1
inconsistencies
2005-10-1921882: extend prompt truncation to handle multibyte charactersPeter Stephenson1-32/+259
2005-10-1321870: bad INULL() definitionPeter Stephenson1-0/+41
21869: multibyte characters in %-substitutions, invalid multibyte characters in completion listings
2005-09-22Stephen Rueger: 21744: unconditionally assume that \t or \n are not part of ↵Clint Adams1-1/+1
multi-byte characters.
2005-09-1721731: handle multibyte characters in prompts correctlyPeter Stephenson1-25/+96
2004-09-0920331: Use internal zlong variables for consistencyPeter Stephenson1-2/+2
20332: Add WIDGETSTYLE zle parameter
2004-08-1620251: integer conversion truncationPeter Stephenson1-1/+3
20258: save command status in prompt substitution update FAQ rename version to 4.2.1-dev-1
2004-08-07still allow user specified text modifiers with a short terminal.Geoff Wing1-1/+2
Only disallow if the terminal is really unknown or without sufficient capabilities or if SINGLE_LINE_ZLE option is given
2004-07-2920208: ternary path codes in prompt treat / as zero elementsPeter Stephenson1-1/+4
2004-06-2220076, 20084: { ... } always { ... } syntax.Peter Stephenson1-2/+2
2004-05-28Silenced two signed/unsigned comparison compiler warnings.Wayne Davison1-2/+2
2004-05-0419877: improved test for empty strftime stringsPeter Stephenson1-4/+9
2004-05-04 * 19869: Src/prompt.c, Src/utils.c: avoid segfault whenClint Adams1-1/+3
prompt-expanding '%D{%p}' or '%D{%P}' under locales with null strings for am_pm.
2004-04-2119806: fix bug with %v prompt expansion and negative index beyond array startOliver Kiddle1-1/+1
2003-11-1319242: Make job table dynamically reallocatable.Peter Stephenson1-2/+2
2003-10-29a la 19209: zcalloc -> zshcallocPeter Stephenson1-1/+1
2003-10-0619168: Various problems with size of buffers and pointer usage in ztrftimePeter Stephenson1-3/+8
2003-01-2718144: allow %{ %} to put bounds around a prompt truncation.Bart Schaefer1-0/+8
2002-08-0517503: fix various typos and spelling mistakes in source code commentsOliver Kiddle1-1/+1
2002-01-3116494: extract outermost words with negative arguments to %_ and add %^Oliver Kiddle1-7/+46
2001-11-0216198: add %j prompt expansion and j test character for no. of jobs in promptOliver Kiddle1-1/+16
2001-06-2215021: new %y character; %l semantic backAndrey Borzenkov1-0/+8
2001-06-0614766: unify %l substitution (tty0, pts/3 etc)Andrey Borzenkov1-2/+2
2001-03-29Don't assume we can change the string for the HOST parameter when used inPeter Stephenson1-4/+1
a prompt
2001-01-16remove 13108 (trap queues); replace with signal queueing to ensure that user ↵Sven Wischnowsky1-0/+4
signal handlers are only executed when it is safe to run them (13365)
2000-07-1312247: internal hostnam variable removed in favour of $HOSTPeter Stephenson1-2/+5
2000-07-1312242: based on code from Fr. Br. George (George V Kouryachy):Peter Stephenson1-162/+331
use negative integers in prompt to count from other end of string
1999-04-15Initial revisionTanaka Akira1-0/+766