1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 07:10:58 +02:00
Commit graph

734 commits

Author SHA1 Message Date
Peter Stephenson
e87b35c04e 10791: fix handling of long accumulated completion line 2006-10-06 10:07:37 +00:00
Peter Stephenson
289b14113b 22819: improved internal use of string quotation,
plus completion bug fix with RCQUOTES
2006-10-05 21:53:26 +00:00
Andrey Borzenkov
21c1e9a346 fix thinko in 22787 2006-09-30 06:53:15 +00:00
Andrey Borzenkov
9f2bf1f0f2 22787: fix calling convention of pattern_match 2006-09-29 17:40:41 +00:00
Peter Stephenson
966ff3a185 22780: add _arguments/comparguments -n to set index of first non-option arg 2006-09-27 16:53:58 +00:00
Peter Stephenson
8f98285662 22765: rename some MB_ macros to WC_ for consistency. 2006-09-23 20:25:05 +00:00
Andrey Borzenkov
71fa876def 22761: fix compdescrie for multibyte characters 2006-09-23 14:43:57 +00:00
Peter Stephenson
78d1939ffd 22753: minor character bugs spotted on Cygwin 2006-09-21 16:36:53 +00:00
Peter Stephenson
4f11c3b8e3 22729: trunction in computil.c did't handle multibyte characters 2006-09-17 19:23:38 +00:00
Peter Stephenson
b477e24aa2 22727: "use 'exit' to exit" was suboptimal 2006-09-17 17:42:56 +00:00
Peter Stephenson
0d4a9f65f7 22713: word end in math completion context was screwy 2006-09-15 15:38:36 +00:00
Peter Stephenson
7b927aeac7 22660: unmetafy directory for opendir() etc. in compctl 2006-09-11 10:05:23 +00:00
Peter Stephenson
80acfd135c 22684: improve getkeystring() interface and make printf do octal escapes 2006-09-10 18:10:48 +00:00
Peter Stephenson
b726ead94e 22676, 22678: extend sched and make it able to run events when waiting for
input
2006-09-10 15:24:26 +00:00
Peter Stephenson
754503c60d 22651: failed to unmetafy bytes for output 2006-08-20 22:28:17 +00:00
Peter Stephenson
f29b8450e7 22643: completing in math context 2006-08-20 18:07:49 +00:00
Peter Stephenson
1a42aadd81 22612: comment the static variables 2006-08-17 09:34:11 +00:00
Peter Stephenson
77321097e7 22611: bug scrolling wide completion list 2006-08-15 21:19:34 +00:00
Peter Stephenson
f2dbedcc4f 22605: bug in complist wide character fixes introduced infinite loop 2006-08-14 13:29:29 +00:00
Peter Stephenson
2ccad2310e 22599: use wide character widths in completion 2006-08-11 21:30:38 +00:00
Peter Stephenson
d5b3716e1c 22597: back off two column-subtraction hunks 2006-08-10 16:34:19 +00:00
Bart Schaefer
7315dbb385 22595: paranoid bounds-checking on some
loop indices.
2006-08-10 15:59:09 +00:00
Peter Stephenson
2983ed3fb3 22594: Attempt to fix some off-by-one errors for completion lists
that exactly fit the display width
2006-08-09 22:08:38 +00:00
Peter Stephenson
98e306e251 unposted: badly positioned declaration in complist.c 2006-08-07 15:58:44 +00:00
Peter Stephenson
b85a444fe0 22589: bug with long lines in menu selection 2006-08-07 15:45:19 +00:00
Peter Stephenson
48d6402e65 rationalise mb<->wc conversions to use restartable form 2006-08-03 15:37:49 +00:00
Peter Stephenson
bb912594b2 22575: multibyte fixes for bslashquote(), getzlequery() 2006-08-01 21:28:04 +00:00
Peter Stephenson
f5bbc619bd 22565: Fix bug after failed menucompletion with accept-and-menu-complete? 2006-07-30 19:58:31 +00:00
Peter Stephenson
50e9ab122b 22556: Multibyte separators and delimiters 2006-07-24 22:00:19 +00:00
Peter Stephenson
4a67f24798 22544: Improve use of ztype tests for multibyte characters. Add
POSIX_IDENTIFIERS option to control allowability of multibyte
alphanumeric characters in parameter and module names.
2006-07-10 13:08:22 +00:00
Peter Stephenson
dd5602f59b 22474: use variable argument lists to improve error message handling 2006-05-30 22:35:03 +00:00
Wayne Davison
fd240e09b0 Made implied "int" on new static variable explicit (which silences
gcc).
2006-05-30 21:21:07 +00:00
Peter Stephenson
09aaf50cda 22464: bad recursion if error in prompt substitution 2006-05-26 22:43:51 +00:00
Peter Stephenson
00446ee29c 22448: typo retrieving $RBUFFER in completion 2006-05-19 10:16:01 +00:00
Peter Stephenson
efe92714c6 this one got missed 2006-04-25 17:33:34 +00:00
Peter Stephenson
949f5b6dee 22431: set WIDGET etc. more consistently when executing zle functions 2006-04-25 15:00:25 +00:00
Peter Stephenson
a2d5ebe3c0 22427: zle <widget> -w sets the environment for <widget> 2006-04-25 10:10:49 +00:00
Peter Stephenson
85f25bb845 users/10172: new zle command read-command 2006-04-23 23:13:47 +00:00
Peter Stephenson
ef330a5dfd 22408: support for multibyte characters in patterns 2006-04-09 21:47:21 +00:00
Wayne Davison
eafa96805b Fixed call to undefined function zwarnname() instead of zwarnnam(). 2006-03-25 18:50:44 +00:00
Peter Stephenson
7b7905fedb 22638: MACHINES: IRIX
users/10047: zle widget -K keymap
2006-03-21 19:19:05 +00:00
Clint Adams
7b92878c24 thinko fix 2006-03-20 15:22:55 +00:00
Clint Adams
8294310202 22371: use only alphanumerics and underscores as word characters with vi bindings. 2006-03-20 14:40:36 +00:00
Clint Adams
b37a0f0000 22366: better handling for multibyte-character-containing words in vi widgets. 2006-03-17 23:45:43 +00:00
Wayne Davison
04ea7bae96 Fix some compiler warnings and ensure that zmod gets restored
properly in bin_zle_call().
2006-03-09 09:44:28 +00:00
Wayne Davison
4cb83571c4 Changed some structures to avoid gcc's type-punned warnings. 2006-03-07 21:30:36 +00:00
Peter Stephenson
e17fc50793 22328, modified: add -o option to compadd
add _list_files helper to handle new file-list style for _path_files
2006-03-07 12:50:56 +00:00
Wayne Davison
4b9d1c4f5c Optimized away a recently-added call to strlen(). 2006-02-20 05:51:49 +00:00
Wayne Davison
6c31a7dc68 Made the realocation of the line buffer in add_match_data() use a
little more optimal size.  Also tweaked the code just a little.
2006-02-19 22:57:56 +00:00
Wayne Davison
1e2f61f116 The code in add_match_data() that looks for invalid characters
now properly parses the string as metafied.
2006-02-18 18:39:38 +00:00
Wayne Davison
5c8bb4944d Replaced a flawed look-behind algorithm for backslash detection
with one that looks forward (avoiding an accidental quoting of a
char after a "\\" sequence).
2006-02-13 11:06:21 +00:00
Wayne Davison
a6658fb9f6 Made add_match_data() look for invalid multibyte chars in the
names and substitute $'\123' sequences for them.
2006-02-13 11:03:59 +00:00
Wayne Davison
f8e97151de Call makecommaspecial() when we notice we're completing inside
an open brace list.
2006-02-13 11:01:04 +00:00
Wayne Davison
587db0585c Call ZS_memchr() instead of plain memchr() so that suffix-removal
works again.
2006-02-09 22:14:49 +00:00
Wayne Davison
6698e6f676 Define ZS_memchr() as either wmemchr() or memchr(). 2006-02-09 22:12:54 +00:00
Peter Stephenson
4b3cdcdb69 22169: hook function zle-keymap-select called when $KEYMAP changes 2006-01-28 15:02:25 +00:00
Wayne Davison
4817964a07 Got rid of unused-variable compiler warning when compiling a
non-multibyte zsh.
2006-01-13 17:46:09 +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
70de60a962 The new "eol" var was being set in singlerefresh(), but not accessed. 2006-01-12 08:33:15 +00:00
Wayne Davison
4867f99ef9 - 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 "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively).
2006-01-12 01:04:17 +00:00
Wayne Davison
f6fefb2db3 - Use "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively).
2006-01-12 00:51:53 +00:00
Wayne Davison
542797377a - 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 "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively).
2006-01-12 00:51:50 +00:00
Wayne Davison
4b831f02df Tweaked the code to handle mbrtowc() converting '\0' the same way as
the other callers do.  Also, changed the variable name to 'cnt'.
2006-01-11 20:12:09 +00:00
Wayne Davison
c6798bc151 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's >= 0, as that won't
work on a system where an int is larger than a size_t.
2006-01-11 19:49:59 +00:00
Wayne Davison
4ffa433443 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's < 0, as that won't
work on a system where an int is larger than a size_t.
2006-01-11 19:42:40 +00:00
Wayne Davison
00465c76fb Changed the name of the "ret" variable in mb_niceformat() to "cnt"
because "ret" is usually used for a variable name to hold the
return value of the function.  Also, changed the test when
checking for a \0 to only check if "cnt" is 0, since we must
always change a value of 0 to 1.
2006-01-09 17:58:57 +00:00
Wayne Davison
90f7b1e173 A test for (size_t)-1 needed to check for (size_t)-2 too. 2006-01-09 17:39:44 +00:00
Wayne Davison
5750513c00 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's < 0, as that won't
work on a system where an int is larger than a size_t.  Also,
the code that handled partial multibyte characters (that were
assembled from multiple bytes of a metafied string) was not
advancing past all the assembled bytes, nor was it handling the
decoding of a '\0' char (it looks like it could have infinite
looped in that case).
2006-01-09 01:09:55 +00:00
Wayne Davison
791bbf7120 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's > 0, as that won't
work on a system where an int is larger than a size_t.  Also,
we needed to use STOUC() on a char value passed to nicechar(),
and we need to clear the mbstate_t object if mbrtowc() returns
an error.
2006-01-09 00:37:10 +00:00
Wayne Davison
74b4973888 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's > 0, as that won't
work on a system where an int is larger than a size_t.  Also,
we needed to use STOUC() on a char value passed to nicechar().
2006-01-09 00:29:57 +00:00
Wayne Davison
9cf3f9ad71 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's > 0, as that won't
work on a system where an int is larger than a size_t.
2006-01-09 00:17:24 +00:00
Peter Stephenson
94953f70b9 22124: handle bad multibyte input better 2006-01-06 14:23:00 +00:00
Wayne Davison
a2e7cbe308 A slightly more optimal way to fix the zle_setline() bug using
the same zlecs-checking idiom as setline().
2005-12-12 18:35:47 +00:00
Wayne Davison
e0c9faba4d Fixed problem in zle_setline() where moving to an empty line would
set zlecs to -1. (Reported by Jun T.)
2005-12-12 18:22:08 +00:00
Peter Stephenson
00e0c063ac 22069: completion listings didn't get unmetafied 2005-12-10 21:04:42 +00:00
Wayne Davison
37e08571a4 Fixed parsedigit() to have it use its arg instead of "lastchar". 2005-11-30 16:49:44 +00:00
Peter Stephenson
e66af50a98 22014: argument-base, insert-unicode-char 2005-11-24 10:25:33 +00:00
Peter Stephenson
09a854378a 22009: another double-width character fix 2005-11-21 15:22:12 +00:00
Wayne Davison
63cf1412f2 Got rid of two unneeded "(char *)" casts. 2005-11-18 17:26:10 +00:00
Wayne Davison
2288d7760b Got rid of some compiler warnings about comparisons between signed
and unsigned variables.
2005-11-15 09:34:00 +00:00
Wayne Davison
c70dabb500 Changed zlelineasstring() and zlegetline() to each return a normal char
pointer, not an unsigned char pointer.  Changed stringaszleline() to
take a normal char pointer for its first arg.  Got rid of some
unsigned-char/char pointer casts.
2005-11-15 08:44:32 +00:00
Wayne Davison
de79438241 Changed zlemetaline into a normal char pointer, not unsigned char.
Got rid of some unsigned-char/char pointer casts.
2005-11-15 08:44:30 +00:00
Wayne Davison
62c71d5d50 Changed zleread() to return a normal char pointer, not unsigned char.
Got rid of some unsigned-char/char pointer casts.
2005-11-15 08:44:28 +00:00
Wayne Davison
0f0d610401 The non-multibyte version of ZWS() doesn't need to force a cast anymore. 2005-11-15 08:44:26 +00:00
Wayne Davison
e79af955f0 Got rid of some unsigned-char/char pointer casts. 2005-11-15 08:44:17 +00:00
Peter Stephenson
e366ca8dbf users/9638: tweaks for FCEDIT etc.
21986: rewrite completion suffixes for wide characters
2005-11-07 09:37:34 +00:00
Peter Stephenson
6bca0ecb48 users/9610: handle digit argument when copying words 2005-11-02 11:09:22 +00:00
Peter Stephenson
29b0eda154 21973: typo caused digitargument() not to work 2005-11-02 10:11:32 +00:00
Peter Stephenson
8a9c9d8078 21971: multibyte version of pfxlen() 2005-11-01 23:10:17 +00:00
Wayne Davison
f53996f14b I just noticed that zsh's default icntrl() macro returns true for
chars 128 - 159, so the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))"
code needed to be updated to reflect this.
2005-11-01 04:02:02 +00:00
Wayne Davison
781711e733 - One minor change to handle the ZLE_STRING_T change.
- A few brace-position twiddles.
2005-11-01 03:26:57 +00:00
Wayne Davison
957b5cf3cd - Changed a couple pointers from "char *" to "unsigned char *" in
order to match the zlemetaline's type.
- A few brace-position twiddles.
2005-11-01 03:26:56 +00:00
Wayne Davison
b6fefba340 - Improved all the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))" code
lines to work in both normal and multibyte mode without needing
  conditional code.
- A couple brace-position twiddles.
2005-11-01 03:26:54 +00:00
Wayne Davison
b043969570 - A few changes in light of the new ZLE_CHAR_T and ZLE_STRING_T.
- Use idigit() in place of some former '0' - '9' range checks.
- Simplified some multibyte conditional code by using ZC_icntrl()
  and LASTFULLCHAR.
2005-11-01 03:26:52 +00:00
Wayne Davison
ee324f449e Changed the non-wide version of: ZLE_CHAR_T into a "char" (formerly
an "int"), and ZLE_STRING_T into a "char *" (formerly an "unsigned
char *").
2005-11-01 03:26:51 +00:00
Wayne Davison
0d611ed481 - Changed a bunch of iblank() calls on zleline to use ZC_iblank().
- Changed one isalpha() call on zleline to use the new ZC_ialpha().
2005-11-01 02:50:31 +00:00
Wayne Davison
8fde3fdf76 - In vireplacechars(), changed "ch" into a ZLE_INT_T.
- Changed some islower()/isupper()/iblank() calls on zleline to
  use the new ZC_i<type> versions.
2005-11-01 02:50:30 +00:00
Wayne Davison
aa02446422 Changed iblank() calls on zleline to use ZC_iblank(). 2005-11-01 02:50:29 +00:00
Wayne Davison
2c28e857f8 - Defined some new ZC_i<type> macros, such as ZC_ilower, ZC_inblank,
ZC_iupper, etc.
- Fixed ZC_iblank to not return true when given a newline.
2005-11-01 02:50:28 +00:00
Wayne Davison
285ac8428f Fixed a compiler warning about a signed/unsigned comparison. 2005-10-31 21:19:30 +00:00
Wayne Davison
e02e6d0a26 Fixed some compiler warnings about signed/unsigned comparisons. 2005-10-31 21:12:24 +00:00
Wayne Davison
edbe0eda22 In parse_cadef(), the variable name oargs was re-defined in an inner
context, so I changed the name of the outer variable to orig_args.
2005-10-31 19:59:20 +00:00
Wayne Davison
87f010ec1a Use idigit() instead of range-checking '0' - '9'. 2005-10-31 18:22:40 +00:00
Peter Stephenson
4f683c2eea 21957: more wide-character refresh stuff 2005-10-30 20:39:38 +00:00
Wayne Davison
0b31102c4c Got rid of a use of WEOF when MULTIBYTE_SUPPORT is not defined
(which fixed a signed vs unsigned comparison compiler warning).
2005-10-28 22:13:44 +00:00
Peter Stephenson
d5ac7ad46e unposted: bit I missed in 21945 2005-10-28 17:42:07 +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
Peter Stephenson
5f11a38bea 21942: another extra-wide character fix 2005-10-28 12:52:22 +00:00
Peter Stephenson
d7a37f48fd 21939: new UNMETACHECK() was too ruthless 2005-10-26 10:06:47 +00:00
Peter Stephenson
60a99da054 21936: bug deleting extra-wide character 2005-10-25 23:13:40 +00:00
Peter Stephenson
7c442d2e06 21930: handle extra-wide characters at end of line 2005-10-24 16:58:41 +00:00
Peter Stephenson
05b6a23362 not yet posted; zle line screwed up on bad return from insertlastword() 2005-10-23 17:42:56 +00:00
Peter Stephenson
e3856ef52e remove a couple of TODOs 2005-10-21 22:40:30 +00:00
Wayne Davison
99947c0c95 Got rid of a pointer-type warning by adding a definition for a
REFRESH_CHAR type and using it to define nullchr (it was using
ZLE_INT_T).
2005-10-19 23:45:06 +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
26e60b1f3a 21887: Display characters wider than one screen cell correctly. 2005-10-19 20:40:24 +00:00
Peter Stephenson
feddc4199b 21885: Convert some refresh macros into functions. 2005-10-19 18:23:06 +00:00
Peter Stephenson
3c37057c34 21871: replace INULL() by inull() 2005-10-13 16:30:13 +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
Bart Schaefer
7f3c92059f 21821, 21822: fix two infinite loops 2005-10-04 14:27:12 +00:00
Peter Stephenson
dcc48ad81b minor tidy-ups 2005-10-02 19:13:44 +00:00
Peter Stephenson
046f4cf49e 21784: Improved character widths for formatted multibyte character output 2005-09-29 17:32:34 +00:00
Bart Schaefer
6183db6faa 21770: tweak 21760 to avoid conflicts with global bindings 2005-09-29 14:39:18 +00:00
Peter Stephenson
f3c0df36be 21769: fix some consequences of 21730 in completion lists 2005-09-27 14:30:30 +00:00
Peter Stephenson
d9bb1a52c9 21764: unmetafication mangle zle history lines 2005-09-26 18:39:21 +00:00
Bart Schaefer
5f076d1390 21760: fix test for sequence prefixes in the local keymap in getkeymapcmd() 2005-09-24 18:49:42 +00:00
Peter Stephenson
409296e22f 21736: improve tests for word and identifier characters with multibyte input 2005-09-20 15:10:26 +00:00
Peter Stephenson
bd678526b3 21731: handle multibyte characters in prompts correctly 2005-09-17 21:39:07 +00:00
Peter Stephenson
d33c6e502a 21722: fix multibyte word stuff 2005-09-09 20:34:42 +00:00
Peter Stephenson
58b9e731da 21720: fix getrestchar() some more 2005-09-09 16:55:21 +00:00
Peter Stephenson
5831792752 21717: Src/Zle/zle_misc.c: fix execute-named-command and -where-is
with multibyte support
2005-09-09 13:48:59 +00:00
Peter Stephenson
d39b9fabdb 21709 plus tweaks: use $KEYTIMEOUT for multibyte chars.Reset input state on invalid characters or EOF 2005-09-09 11:48:27 +00:00
Andrey Borzenkov
a6ebb7bfc3 21664: unmetafy ztat() argument 2005-08-18 18:19:29 +00:00
Andrey Borzenkov
c26b8accb4 21663: check for string overflow 2005-08-18 18:15:44 +00:00
Wayne Davison
5e803c0fcf Got rid of an empty #ifdef/#else/#endif. 2005-08-17 19:26:03 +00:00
Wayne Davison
9d6048811c Fixed bug in do_comp_vars() when *compprefix is a metified char. 2005-08-16 21:49:33 +00:00
Andrey Borzenkov
11b0963bdc 21642: remove redundant checks 2005-08-16 17:25:48 +00:00
Wayne Davison
fb047b6ffa Moved declaration of char pointer var to comply with
restrictions of standard C.
2005-08-16 01:59:43 +00:00
Clint Adams
3c92ad4b90 21631: make sure an unmetafied string is passed to ztat to determine file type. 2005-08-16 00:51:57 +00:00
Andrey Borzenkov
17e1a3cd0c 21627: fix recursive ZLE from completion call 2005-08-15 18:16:04 +00:00
Andrey Borzenkov
f570dd59e3 21622: fix recursive completion call in zrefresh() 2005-08-15 17:30:58 +00:00
Clint Adams
987033eaf9 21619: define wide versions of zarrdup, zputs, niceztrlen. 2005-08-15 17:19:16 +00:00
Peter Stephenson
8b3558c5ed 21616: typo 2005-08-15 15:47:53 +00:00
Peter Stephenson
243539fa30 21610: Turn on ZLE_UNICODE_SUPPORT and fix a few related problems. 2005-08-15 10:01:47 +00:00
Wayne Davison
6e9f6bc7d1 For gcc, use static inline functions in place of the ZS_str*
macros so that we get type-checking without pointer-signedness
warnings.
2005-08-12 13:12:37 +00:00
Peter Stephenson
7f09a15a83 21603: wchar/multibyte conversion of cursor position when at end of line 2005-08-12 10:24:23 +00:00
Wayne Davison
68f073faa2 Changed several instances of ZWC() used on a string to ZWS(). 2005-08-11 18:40:53 +00:00
Peter Stephenson
817e59cf19 21596: fix run-help, which-command, accept-and-menu-complete 2005-08-10 19:51:30 +00:00
Peter Stephenson
eb09406787 21593: character arrays wrongly declared with ZLE_UNICODE_SUPPORT 2005-08-10 13:21:15 +00:00
Peter Stephenson
0c301a8af6 21592: browsing new directory from menu selection crashed 2005-08-10 11:59:28 +00:00
Peter Stephenson
2a888b3d5a c.f. 21590: metafy_line()/unmetafy_line() now support wide characters 2005-08-10 10:56:40 +00:00
Peter Stephenson
c73dd46019 Fixes from Thorsten Dahlheimer.
21578: mkmakemod.sh didn't exit on cleanup.
21582: fix failure status of zmodload -R.
21583: fix circularity test of zmodload -A.
2005-08-09 10:02:08 +00:00
Peter Stephenson
8665549030 21541: remove some warnings from ZLE_UNICODE_SUPPORT 2005-07-28 14:45:32 +00:00
Wayne Davison
d355573c48 Moving the PROMPT_SP code earlier in the scheme of things so that
it can take affect prior to things like the mail-check output.
2005-07-26 22:46:10 +00:00
Wayne Davison
767e017e1f Implement the new PROMPT_SP option. 2005-07-15 17:41:55 +00:00
Bart Schaefer
5af2ab3b9c 21428: Travis: fix crash on bad compvalues call 2005-07-12 03:07:22 +00:00
Peter Stephenson
75f853f2e3 21402: Fix crash with case-insensitive matching. 2005-07-06 10:01:19 +00:00
Peter Stephenson
8a24c5a5ee users/8856, users/8863: which-command stuff 2005-05-23 10:11:18 +00:00
Peter Stephenson
5733e942f5 Optimise length calculations for ${...//.../...} 2005-04-24 00:38:07 +00:00
Geoff Wing
e71c9f6c01 20162: in printlist() don't output new line if we haven't printed anything 2005-04-22 02:46:40 +00:00
Clint Adams
56cb95d1dd * 21125: Src/Zle/zle_main.c: do an initial conversion when zle is loaded. 2005-04-08 16:58:09 +00:00
Clint Adams
5571605340 * 21124: Src/Zle/zle_main.c, Src/init.c, Src/params.c: have zle cache a
wide-char version of WORDCHARS each time it's changed (when ZLE_UNICODE_SUPPORT
 is defined).
2005-04-08 16:42:55 +00:00
Peter Stephenson
24699f961d 21045: fix some uses of Meta characters in completion 2005-03-21 18:49:04 +00:00
Peter Stephenson
5d7ee7574a 21042: limitations with execute-named-command 2005-03-21 17:07:25 +00:00
Peter Stephenson
63f6742e9a 21014: remember_edits() was broken 2005-03-18 18:27:51 +00:00
Peter Stephenson
31aaabe1bc 20978: don't propagate EOF from recursive edits 2005-03-15 10:50:58 +00:00
Peter Stephenson
15b78be794 20966: fix crash in execute-named-command 2005-03-11 10:33:39 +00:00
Peter Stephenson
9edff429d8 20945: rename statics to avoid clash with globals 2005-03-07 11:11:18 +00:00
Peter Stephenson
7fb20a71cb correct 20928 2005-03-04 21:40:37 +00:00
Peter Stephenson
d4c948bdd0 20928: null terminate screen lines in zle_refresh.c 2005-03-04 21:34:28 +00:00
Andrey Borzenkov
ae6c23ae2c 20872: fix ZS_{icntrl,tolower} vs. ZC_{incntrl,tolower} confusion 2005-02-26 07:40:54 +00:00
Peter Stephenson
f7ceca4fec 20869: more small Unicode tweaks 2005-02-25 15:10:01 +00:00
Peter Stephenson
ddd172ebe2 20863: fix history (i)searching for Unicode 2005-02-25 10:20:38 +00:00
Peter Stephenson
29b6b82ade 20866: fix deliberate errors in 20861 2005-02-24 21:10:44 +00:00
Peter Stephenson
691dd7e529 20861: Fix statusline in Unicode, apart from isearch 2005-02-24 15:32:36 +00:00
Andrey Borzenkov
c4a4c1340a 20857: rewrite zle_refresh to use wide characters. 2005-02-23 16:29:56 +00:00
Peter Stephenson
0da7162ed6 20856: use VARARR for multibyte string. 2005-02-23 13:59:33 +00:00
Peter Stephenson
d9137fd4b6 20854: more Unicode stuff. 2005-02-23 13:50:09 +00:00
Andrey Borzenkov
70f9279060 20845: fix mbstate_t usage in getrestchar 2005-02-22 21:36:40 +00:00
Peter Stephenson
b83f0e2290 Andrej: 20838: get ZLE_UNICODE_SUPPORT basically working 2005-02-22 13:12:35 +00:00
Peter Stephenson
ee5aada47b 20833: typo: int_t -> wint_t 2005-02-21 11:18:49 +00:00
Peter Stephenson
e34d2df070 20828: typos in 20822 2005-02-18 17:30:55 +00:00
Peter Stephenson
d7c13fb2c3 20822: Initial code for Unicode/multibyte input
20823: Debugging test in stat wrong for 64-bit systems
2005-02-18 13:57:25 +00:00
Clint Adams
efab849310 * 20753: use ZS_memmove instead of memmove. 2005-01-26 18:37:28 +00:00
Peter Stephenson
85e0b5f377 20752: fix access to ZLE parameters 2005-01-26 18:12:08 +00:00
Clint Adams
3934f7a402 * 20751: Src/Zle/zle_refresh.c: use '?' for character conversion error 2005-01-26 14:29:12 +00:00
Clint Adams
9453ea957e * 20747: some wide char support in the zle refresh code. 2005-01-26 13:39:46 +00:00
Peter Stephenson
77bd05014d 20750: fix hang with 20742 2005-01-26 12:34:31 +00:00
Peter Stephenson
efd03cf9e8 20742: More Unicode conversion stuff. 2005-01-25 16:40:41 +00:00
Clint Adams
8ae8a91b8b * 20736: Src/Zle/zle_utils.c: change zlegetline() to return a metafied string. 2005-01-22 16:26:32 +00:00
Clint Adams
0038b1a682 * 2073x: Src/Zle/zle_utils.c, Src/hist.c: modify zlegetline() and zlegetline
caller so that the octet-based and wide-character versions should return
   the same string.
2005-01-22 04:03:05 +00:00
Clint Adams
7c2424d022 * 20718: Src/Zle/zle_utils.c: minor cleanup for proto-Unicode stuff. 2005-01-16 16:24:28 +00:00
Peter Stephenson
88a37cc187 c.f. 20675: improve zle as a basis for Unicode.
unposted: update version to 4.2.3-dev-1
2005-01-14 13:04:47 +00:00
Peter Stephenson
81b9354238 users/8359: add Darwin completion directories by default 2005-01-12 17:28:58 +00:00
Peter Stephenson
77166e259e 20695: Fix Cygwin problem with initialising from pointer to imported variable 2005-01-12 12:18:58 +00:00
Clint Adams
8db6e42ecd * 20657: Src/Zle/zle_tricky.c: sort completions partially based on LC_COLLATE setting. 2005-01-11 18:24:51 +00:00
Peter Stephenson
69b4b8bdde 20605: Use separate structure with get/set/unset methods fro parameters.
Separate justification width of parameters from base/precision.
2004-12-07 16:54:58 +00:00
Bart Schaefer
33686bdc98 fix "compadd -k assoc1 assoc2" 2004-11-05 16:19:19 +00:00
Peter Stephenson
b115ca307a 20500: Unmetafy patterns where possible and other minor pattern fixes 2004-10-18 11:56:14 +00:00
Wayne Davison
66baaced5d In zleread(), initialize the first byte of the "line" buffer to '\0'
so that functions such as magicspace() won't be accessing uninitialized
memory when they look at "line".
2004-10-17 20:12:46 +00:00