about summary refs log tree commit diff
path: root/Src/prompt.c
Commit message (Collapse)AuthorAgeFilesLines
* 34322: bug with interface to parsestr() etc.Peter Stephenson2015-01-181-1/+1
| | | | | | | Was showing up in places like ${(e)...} where command substitution could reallocate the token string, but actually there was never any guarantee that the lexer wouldn't do that, so this was always a bit iffy.
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-111-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles.
* 33256: fix prompttrunc() counting of %{ %} spansBarton E. Schaefer2014-09-271-8/+6
|
* 33070: add %(e..) based on %eBarton E. Schaefer2014-08-301-0/+11
|
* 33057: %e in prompts shows evaluation / execution depthPeter Stephenson2014-08-291-0/+13
|
* 32971: negative argument with %(l..) and with %<< or %>> calculates space ↵Barton E. Schaefer2014-08-071-3/+13
| | | | available before right margin
* 32918: add %. to ztrftime for use in promptsPeter Stephenson2014-07-301-3/+5
|
* 30496: Parse argument to %F and %K as prompt sequencesMikael Magnusson2013-03-101-14/+29
|
* 30307 plus tweak suggsted by Wayne: use %lld for zlong when long longPeter Stephenson2012-03-051-0/+16
|
* 29165: use term.h globally if needed at all.Peter Stephenson2011-05-091-3/+3
|
* 28853: Fix typo: preceed -> precedeFrank Terbeck2011-03-041-1/+1
|
* 27983: colours could be output twicePeter Stephenson2010-06-031-1/+6
|
* 27125: handle nested use of colour code buffer allocationPeter Stephenson2009-07-101-2/+14
|
* 26958: Fix reallocation problem in promptsPeter Stephenson2009-05-121-0/+3
|
* 25930: dynamic directory expansion memory handling was screwyPeter Stephenson2008-10-241-196/+222
|
* 25775: fix logical problem with function line numbering inside eval-style trapsPeter Stephenson2008-09-291-2/+2
|
* 25684: make %x and %I consistent with eval line numberingPeter Stephenson2008-09-251-2/+4
|
* 25677: add %x and %I prompt escapes for shell source code debuggingPeter Stephenson2008-09-161-0/+26
| | | | tidy up interface to doshfunc()
* 25672: remove unnecessary Nularg when prompt expandingPeter Stephenson2008-09-151-0/+6
| | | | to avoid problem with glitch space
* 25242: Mikael V prompt test for contents of psvarPeter Stephenson2008-06-241-0/+6
|
* 25051: add colour sequences to formatting strings in completionPeter Stephenson2008-05-161-3/+1
|
* 25002: only ZLE should update attributes resulting from prompt expansionPeter Stephenson2008-05-121-33/+37
|
* unposted: fix uninitialised variablePeter Stephenson2008-05-091-1/+1
|
* 24986: prompt escapes for coloursPeter Stephenson2008-05-091-20/+539
|
* 24861 (with tweaks): logic to use alternative wcwidth() if needed;Peter Stephenson2008-04-221-4/+4
| | | | slightly improve test for overwriting with combining characters.
* 24566: fix prompts with glitch spaces a bit morePeter Stephenson2008-02-171-7/+24
|
* 24556: %G in prompt for glitch charactersPeter Stephenson2008-02-151-0/+10
|
* add some mod_export tags where needed zsh-4.3.4-dev-2Peter Stephenson2007-11-201-1/+1
|
* 24007: prompt allocation and use of "shout"Peter Stephenson2007-10-221-2/+2
|
* 22753: minor character bugs spotted on CygwinPeter Stephenson2006-09-211-1/+2
|
* 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