about summary refs log tree commit diff
path: root/Src/prompt.c
Commit message (Collapse)AuthorAgeFilesLines
* assume width 1 for control characters;Peter Stephenson2006-09-151-4/+13
| | | | don't crash if width of repeated padding string is 0
* 22705: make ${(l...)...} and ${(r...)...} handle multibyte charactersPeter Stephenson2006-09-131-9/+9
|
* rationalise mb<->wc conversions to use restartable formPeter Stephenson2006-08-031-0/+1
|
* 22542: deoverenthuse cmdpoppingPeter Stephenson2006-07-091-3/+22
|
* Changed some structures to avoid gcc's type-punned warnings.Wayne Davison2006-03-071-1/+1
|
* Tweaked the code that handles %D so that: (1) we don't free() a NULLWayne Davison2006-01-171-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").
* Got rid of some superfluous STOUC() calls (such as the ones I addedWayne Davison2006-01-131-6/+7
| | | | for the arg of calls to nicechar(), which doesn't need this).
* A better version of my last change.Wayne Davison2006-01-131-12/+4
|
* Metafy the output of the ztrftime() string since that's what theWayne Davison2006-01-131-1/+12
| | | | prompt expects and some date names might not be ASCII.
* - The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-121-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).
* 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;Peter Stephenson2005-10-281-11/+11
| | | | use multibyte versions of nicechar wherever possible.
* Fix --disable-multibyte compile error.Bart Schaefer2005-10-231-3/+5
|
* remove a couple of TODOsPeter Stephenson2005-10-211-94/+19
|
* 21890: fix segmentation error in left prompt truncation and a couple of minorPeter Stephenson2005-10-191-1/+1
| | | | inconsistencies
* 21882: extend prompt truncation to handle multibyte charactersPeter Stephenson2005-10-191-32/+259
|
* 21870: bad INULL() definitionPeter Stephenson2005-10-131-0/+41
| | | | | 21869: multibyte characters in %-substitutions, invalid multibyte characters in completion listings
* Stephen Rueger: 21744: unconditionally assume that \t or \n are not part of ↵Clint Adams2005-09-221-1/+1
| | | | multi-byte characters.
* 21731: handle multibyte characters in prompts correctlyPeter Stephenson2005-09-171-25/+96
|
* 20331: Use internal zlong variables for consistencyPeter Stephenson2004-09-091-2/+2
| | | | 20332: Add WIDGETSTYLE zle parameter
* 20251: integer conversion truncationPeter Stephenson2004-08-161-1/+3
| | | | | | 20258: save command status in prompt substitution update FAQ rename version to 4.2.1-dev-1
* still allow user specified text modifiers with a short terminal.Geoff Wing2004-08-071-1/+2
| | | | | Only disallow if the terminal is really unknown or without sufficient capabilities or if SINGLE_LINE_ZLE option is given
* 20208: ternary path codes in prompt treat / as zero elementsPeter Stephenson2004-07-291-1/+4
|
* 20076, 20084: { ... } always { ... } syntax.Peter Stephenson2004-06-221-2/+2
|
* Silenced two signed/unsigned comparison compiler warnings.Wayne Davison2004-05-281-2/+2
|
* 19877: improved test for empty strftime stringsPeter Stephenson2004-05-041-4/+9
|
* * 19869: Src/prompt.c, Src/utils.c: avoid segfault whenClint Adams2004-05-041-1/+3
| | | | | prompt-expanding '%D{%p}' or '%D{%P}' under locales with null strings for am_pm.
* 19806: fix bug with %v prompt expansion and negative index beyond array startOliver Kiddle2004-04-211-1/+1
|
* 19242: Make job table dynamically reallocatable.Peter Stephenson2003-11-131-2/+2
|
* a la 19209: zcalloc -> zshcallocPeter Stephenson2003-10-291-1/+1
|
* 19168: Various problems with size of buffers and pointer usage in ztrftimePeter Stephenson2003-10-061-3/+8
|
* 18144: allow %{ %} to put bounds around a prompt truncation.Bart Schaefer2003-01-271-0/+8
|
* 17503: fix various typos and spelling mistakes in source code commentsOliver Kiddle2002-08-051-1/+1
|
* 16494: extract outermost words with negative arguments to %_ and add %^Oliver Kiddle2002-01-311-7/+46
|
* 16198: add %j prompt expansion and j test character for no. of jobs in promptOliver Kiddle2001-11-021-1/+16
|
* 15021: new %y character; %l semantic backAndrey Borzenkov2001-06-221-0/+8
|
* 14766: unify %l substitution (tty0, pts/3 etc)Andrey Borzenkov2001-06-061-2/+2
|
* Don't assume we can change the string for the HOST parameter when used inPeter Stephenson2001-03-291-4/+1
| | | | a prompt
* remove 13108 (trap queues); replace with signal queueing to ensure that user ↵Sven Wischnowsky2001-01-161-0/+4
| | | | signal handlers are only executed when it is safe to run them (13365)
* 12247: internal hostnam variable removed in favour of $HOSTPeter Stephenson2000-07-131-2/+5
|
* 12242: based on code from Fr. Br. George (George V Kouryachy):Peter Stephenson2000-07-131-162/+331
| | | | use negative integers in prompt to count from other end of string
* Initial revisionTanaka Akira1999-04-151-0/+766