1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00
Commit graph

92 commits

Author SHA1 Message Date
Peter Stephenson
78d1939ffd 22753: minor character bugs spotted on Cygwin 2006-09-21 16:36:53 +00:00
Peter Stephenson
bb3628e898 assume width 1 for control characters;
don't crash if width of repeated padding string is 0
2006-09-15 13:17:27 +00:00
Peter Stephenson
a242b1eb35 22705: make ${(l...)...} and ${(r...)...} handle multibyte characters 2006-09-13 20:55:29 +00:00
Peter Stephenson
48d6402e65 rationalise mb<->wc conversions to use restartable form 2006-08-03 15:37:49 +00:00
Peter Stephenson
9d5f320f38 22542: deoverenthuse cmdpopping 2006-07-09 14:47:22 +00:00
Wayne Davison
4cb83571c4 Changed some structures to avoid gcc's type-punned warnings. 2006-03-07 21:30:36 +00:00
Wayne Davison
f211604396 Tweaked the code that handles %D so that: (1) we don't free() a NULL
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-17 22:14:40 +00:00
Wayne Davison
78ddb65f6c Got rid of some superfluous STOUC() calls (such as the ones I added
for the arg of calls to nicechar(), which doesn't need this).
2006-01-13 17:13:49 +00:00
Wayne Davison
394a6b3567 A better version of my last change. 2006-01-13 09:43:46 +00:00
Wayne Davison
325c9a1de5 Metafy the output of the ztrftime() string since that's what the
prompt expects and some date names might not be ASCII.
2006-01-13 09:25:09 +00:00
Wayne Davison
eebfabe548 - The return value of mbrtowc() is a size_t (unsigned), so don't
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).
2006-01-12 00:51:41 +00:00
Peter Stephenson
aea7715261 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;
use multibyte versions of nicechar wherever possible.
2005-10-28 17:34:33 +00:00
Bart Schaefer
533021f2ad Fix --disable-multibyte compile error. 2005-10-23 19:28:20 +00:00
Peter Stephenson
e3856ef52e remove a couple of TODOs 2005-10-21 22:40:30 +00:00
Peter Stephenson
2ddaeb605f 21890: fix segmentation error in left prompt truncation and a couple of minor
inconsistencies
2005-10-19 21:59:34 +00:00
Peter Stephenson
4ca967e200 21882: extend prompt truncation to handle multibyte characters 2005-10-19 08:39:02 +00:00
Peter Stephenson
cc81bba1e3 21870: bad INULL() definition
21869: multibyte characters in %-substitutions, invalid multibyte
characters in completion listings
2005-10-13 13:19:29 +00:00
Clint Adams
fdd0397411 Stephen Rueger: 21744: unconditionally assume that \t or \n are not part of multi-byte characters. 2005-09-22 01:36:35 +00:00
Peter Stephenson
bd678526b3 21731: handle multibyte characters in prompts correctly 2005-09-17 21:39:07 +00:00
Peter Stephenson
6b1dc0f701 20331: Use internal zlong variables for consistency
20332: Add WIDGETSTYLE zle parameter
2004-09-09 10:12:42 +00:00
Peter Stephenson
7d3220f298 20251: integer conversion truncation
20258: save command status in prompt substitution
update FAQ
rename version to 4.2.1-dev-1
2004-08-16 09:52:56 +00:00
Geoff Wing
fd62429d19 still allow user specified text modifiers with a short terminal.
Only disallow if the terminal is really unknown or without
sufficient capabilities or if SINGLE_LINE_ZLE option is given
2004-08-07 08:43:56 +00:00
Peter Stephenson
e1d8ca1d70 20208: ternary path codes in prompt treat / as zero elements 2004-07-29 11:45:53 +00:00
Peter Stephenson
d591334e9d 20076, 20084: { ... } always { ... } syntax. 2004-06-22 13:09:55 +00:00
Wayne Davison
14c7f464c2 Silenced two signed/unsigned comparison compiler warnings. 2004-05-28 19:21:05 +00:00
Peter Stephenson
f57f65282b 19877: improved test for empty strftime strings 2004-05-04 16:43:29 +00:00
Clint Adams
c98b9dc800 * 19869: Src/prompt.c, Src/utils.c: avoid segfault when
prompt-expanding '%D{%p}' or '%D{%P}' under locales with null
        strings for am_pm.
2004-05-04 04:17:26 +00:00
Oliver Kiddle
f34d9be61b 19806: fix bug with %v prompt expansion and negative index beyond array start 2004-04-21 08:31:45 +00:00
Peter Stephenson
a6a63a147e 19242: Make job table dynamically reallocatable. 2003-11-13 14:34:33 +00:00
Peter Stephenson
815bc92148 a la 19209: zcalloc -> zshcalloc 2003-10-29 19:17:30 +00:00
Peter Stephenson
ed6a7ba60e 19168: Various problems with size of buffers and pointer usage in ztrftime 2003-10-06 22:46:24 +00:00
Bart Schaefer
6c78ce042d 18144: allow %{ %} to put bounds around a prompt truncation. 2003-01-27 16:39:25 +00:00
Oliver Kiddle
af0697b705 17503: fix various typos and spelling mistakes in source code comments 2002-08-05 12:35:59 +00:00
Oliver Kiddle
16f1f616f9 16494: extract outermost words with negative arguments to %_ and add %^ 2002-01-31 15:13:26 +00:00
Oliver Kiddle
19d2273cb7 16198: add %j prompt expansion and j test character for no. of jobs in prompt 2001-11-02 12:35:32 +00:00
Andrey Borzenkov
791e11a084 15021: new %y character; %l semantic back 2001-06-22 09:44:06 +00:00
Andrey Borzenkov
6c187b251a 14766: unify %l substitution (tty0, pts/3 etc) 2001-06-06 16:38:50 +00:00
Peter Stephenson
44ff671fe5 Don't assume we can change the string for the HOST parameter when used in
a prompt
2001-03-29 12:06:23 +00:00
Sven Wischnowsky
757168e2c8 remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365) 2001-01-16 13:44:18 +00:00
Peter Stephenson
d13f6631d7 12247: internal hostnam variable removed in favour of $HOST 2000-07-13 17:06:19 +00:00
Peter Stephenson
fa699be45d 12242: based on code from Fr. Br. George (George V Kouryachy):
use negative integers in prompt to count from other end of string
2000-07-13 11:20:46 +00:00
Tanaka Akira
e74702b467 Initial revision 1999-04-15 18:05:38 +00:00