Geoff Wing
29a869d5a8
23924: Improve synchronising of character attributes with other
...
output routines
2007-10-19 01:33:09 +00:00
Peter Stephenson
91b9f3d786
23900: Better handling of NO_EQUALS in old completion
2007-10-03 16:18:38 +00:00
Clint Adams
8deb3e6c43
2381x: set vipenultsrchstr to NULL after freeing it to avoid vi-mode history search segfaults.
2007-09-13 10:14:56 +00:00
Peter Stephenson
e0a3e74b15
23809: expand $'...' in completion word
2007-08-30 21:46:01 +00:00
Peter Stephenson
4af9d97317
23807: fix interactive completion mode
2007-08-30 14:38:26 +00:00
Peter Stephenson
d931eed826
23794: fix crash completing on "foo$" (quotes significant)
2007-08-22 17:24:08 +00:00
Peter Stephenson
55b7a07a7e
23791: use VARARR for MB_CUR_MAX
...
users/11791: remove mysterious comment around emulate -L zsh in
incremental-complete-word
2007-08-22 09:25:32 +00:00
Peter Stephenson
4860917a49
23693: _match completion tried to match the quoted form of filenames
2007-07-23 13:24:44 +00:00
Peter Stephenson
1b52f47cf2
23665: autoloading of module features and related tweaks
2007-07-06 21:52:38 +00:00
Peter Stephenson
876fa2c44e
unposted: force latest version of files from vendor to main branch
2007-07-03 17:06:04 +00:00
Peter Stephenson
4d52b7ebe6
23670: rationalise some linked list functions
2007-06-27 13:56:10 +00:00
Peter Stephenson
0a1de76213
23578: make standard features autoloadable,
...
use feature notation for .mdd autoloads
2007-06-20 20:59:15 +00:00
Peter Stephenson
abae4fe16e
23562: add KSH_ZERO_SUBSCRIPT option and leave off by default
2007-06-18 13:25:03 +00:00
Peter Stephenson
6ab77f00ff
23488: tidy up module interface and documentation
2007-05-29 17:01:07 +00:00
Peter Stephenson
3fbbdf245b
23482: more typos
2007-05-29 09:53:44 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Peter Stephenson
bd76320790
23478: crash in reverse-menu-complete if no completion
2007-05-28 13:08:47 +00:00
Peter Stephenson
31178db2cc
Phil Pennock: 23450: $widgets crashed shell on undefined widget
2007-05-22 09:26:01 +00:00
Peter Stephenson
b5d4d3d9c1
23433: fix shift for ZMAXTIMEOUT
2007-05-13 19:11:24 +00:00
Peter Stephenson
19dccc355a
23363: fake-files now allows patterns
2007-05-01 09:29:35 +00:00
Peter Stephenson
4b635e7f91
23337: fix unmetafication for stat() of files in compctl
2007-04-27 16:04:47 +00:00
Peter Stephenson
c6dfb2999d
users/11419: zle copy-region-as-kill <string>
...
adds text to the kill ring
2007-04-19 14:16:22 +00:00
Peter Stephenson
0e58658d4a
users/11421: %{...%} was broken in completion listings
2007-04-17 14:55:15 +00:00
Peter Stephenson
f368975eff
users/11398: vi-goto-mark broken by multibyte support
2007-04-15 21:09:37 +00:00
Peter Stephenson
9dab5eef01
users/11398: vi-goto-mark broken by multibyte support
2007-04-15 20:04:58 +00:00
Peter Stephenson
54949051da
23258: fix debugging added in 23248
2007-04-02 13:58:19 +00:00
Peter Stephenson
56bf25cff9
unposted: better fix for complist line wrap from 23248
2007-03-30 09:32:17 +00:00
Peter Stephenson
af8a88e4f5
23248: Completion listing problem with lines nearly screen width
...
If compiled with debug send dputs() output to $ZSH_DEBUG_LOG if defined.
2007-03-29 21:35:39 +00:00
Peter Stephenson
299b238297
23246: fix completions of redirections that occur before the command word
2007-03-28 21:33:16 +00:00
Peter Stephenson
3d6f87fccc
fix output of prompt in single line ZLE
2007-03-19 22:27:45 +00:00
Peter Stephenson
bd6baa2ede
23172: typo displaying multiline explanation strings
2007-02-13 21:54:41 +00:00
Peter Stephenson
62b671f0d1
23159 plus minor doc tweaks: leave BAUD parameter unset by default
2007-02-08 10:43:28 +00:00
Peter Stephenson
bae2ec88e5
unposted: uninitialised variable could result from 23144
2007-02-06 10:12:20 +00:00
Peter Stephenson
b2d709b22e
23144: Felix Eckhofer <felix@tribut.de>: NULL pointer in complist.c
2007-02-02 23:47:47 +00:00
Wayne Davison
9abddc0ccf
Fixed the error checking of mbrtowc() since its return vlaue can never
...
be < 0 -- it returns MB_INVALID, (size_t)-1, which is a positive value.
2007-01-26 19:11:48 +00:00
Peter Stephenson
c53aa4adee
unposted; typo
2007-01-21 22:49:56 +00:00
Peter Stephenson
553e011320
23118: improve sorting to make it work with locales
2007-01-21 22:47:36 +00:00
Peter Stephenson
94bdf92a06
23097: splitting of $'...' strings in completion
2007-01-08 22:05:54 +00:00
Peter Stephenson
1cac90759a
23036: three more fixes for completion using $'...'
2006-12-08 18:52:04 +00:00
Peter Stephenson
34381548da
Incomplete improvements for $'...' in completion
2006-12-03 21:07:17 +00:00
Peter Stephenson
aba936b17c
22981: Zvi Har'el: bad call from 22952
...
22980: add hook array for special functions
2006-11-08 10:38:05 +00:00
Peter Stephenson
d94e67d6fd
22950: fix reverse-menu-complete as start of completion
2006-11-02 16:26:23 +00:00
Peter Stephenson
006229c32e
22924: a couple more metafy_line()/unmetafy_line() problems
2006-10-30 14:13:36 +00:00
Peter Stephenson
9986ebfd33
obscure crash with hasbrpsfx()
2006-10-30 12:57:52 +00:00
Peter Stephenson
048ac23985
22911: use QT_BACKSLASH if instring is QT_NONE
2006-10-25 18:01:41 +00:00
Clint Adams
cc8575a270
22896: Src/Zle/complete.mdd: rename Mandrake to Mandriva.
2006-10-23 09:32:24 +00:00
Peter Stephenson
b736a639dd
string quoting in compctl used QT_NONE instead of QT_BACKSLASH
2006-10-16 17:02:05 +00:00
Bart Schaefer
d6a7f6f5ad
Add two widges for user control of auto-suffix remove/keep.
2006-10-16 01:09:22 +00:00
Andrey Borzenkov
9d8c3eb74d
22831: use CM_SPACE in compdescribe
2006-10-07 08:05:03 +00:00
Peter Stephenson
b4f837a862
22820: this time, fix handling of long accumulated completion line
2006-10-06 16:48:42 +00:00
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