Peter Stephenson
dd5602f59b
22474: use variable argument lists to improve error message handling
2006-05-30 22:35:03 +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
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
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
Peter Stephenson
00e0c063ac
22069: completion listings didn't get unmetafied
2005-12-10 21:04:42 +00:00
Wayne Davison
e79af955f0
Got rid of some unsigned-char/char pointer casts.
2005-11-15 08:44:17 +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
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
Peter Stephenson
f3c0df36be
21769: fix some consequences of 21730 in completion lists
2005-09-27 14:30: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
5733e942f5
Optimise length calculations for ${...//.../...}
2005-04-24 00:38:07 +00:00
Peter Stephenson
691dd7e529
20861: Fix statusline in Unicode, apart from isearch
2005-02-24 15:32:36 +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
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
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
b115ca307a
20500: Unmetafy patterns where possible and other minor pattern fixes
2004-10-18 11:56:14 +00:00
Peter Stephenson
cf89569c45
20482: but with completion inside interactive completion
2004-10-14 07:19:04 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Peter Stephenson
2ace0ce4f2
19553: rename c in zle to lastchar
2004-03-08 11:44:09 +00:00
Wayne Davison
cd7bfcf690
Silenced some compiler warnings about uninitialized variables.
2004-02-19 09:11:40 +00:00
Peter Stephenson
1f8c031467
18926: problem accepting filename require metafication with menu selection
2003-08-05 10:12:08 +00:00
Peter Stephenson
2b744cb21d
18513: Work around crash on resize in menu selection
2003-05-14 10:16:01 +00:00
Andrey Borzenkov
f318d64e3d
18476: Fix menu selection on Linux console
2003-05-05 06:07:04 +00:00
Sven Wischnowsky
135db923be
improve interactive mode when there are no matches left (alow to go back with undo) (17429)
2002-07-05 08:18:50 +00:00
Sven Wischnowsky
c2dd10edc9
in menu selection, use copies of comp{pre,suf}fix to make sure they exist; fix display problem with non-empty iprefix (17403)
2002-07-04 09:29:20 +00:00
Sven Wischnowsky
d98faffcaf
fix for interactive mode when menu selection is called via the menu-select widget (17394)
2002-07-03 07:59:53 +00:00
Sven Wischnowsky
d28f67623f
two new modes for menu selection: incremental search and interactive (17366)
2002-06-26 11:07:42 +00:00
Sven Wischnowsky
5221570c4a
don't use optimised completion list display code after the list has been erased or we're not in menu selection anymore anyway (17286)
2002-06-05 07:49:02 +00:00
Sven Wischnowsky
b36344b6ba
follow-up to 17222, make the optimisation work for some more keys again (17237)
2002-05-27 07:41:07 +00:00
Sven Wischnowsky
9038bdb400
we have to disable 17219 for some keys because their code doesn't set up the variables we need (17222)
2002-05-24 15:02:32 +00:00
Sven Wischnowsky
205e07663f
make re-display in menu selection faster; redraw only the previously and newly selected matches (17219)
2002-05-24 08:50:10 +00:00
Sven Wischnowsky
5a89ede77b
fix for file-type-tests in nested quotes and don't count space file-type-character (17195)
2002-05-21 08:07:51 +00:00
Sven Wischnowsky
3807c902a2
add new generic fake style and changes to the C-code for that (different implementation of compadd -x) (16483)
2002-01-22 10:22:47 +00:00
Sven Wischnowsky
eba59194d7
make display for groups in _describe nicer; improve packing with list_packed; leave space for type character (list_types) only in groups with at least one file name (15477)
2001-07-25 08:52:34 +00:00
Sven Wischnowsky
8c1b953b5a
add list-grouped option to make options and such be grouped together if they have the same description; matches with line-display strings can be hidden; hi and du capabalities in complist are only used if set by the user (15407)
2001-07-18 13:10:07 +00:00
Sven Wischnowsky
a5a5aa4e3e
fixes for display bugs for completion lists (cursor left one line to far up or down) (14903)
2001-06-13 14:03:44 +00:00
Sven Wischnowsky
a3e01003c8
print space/backspace when reacing the last column while printing descriptions and the like to avoid a cursor positioning bug depending on the kind of terminal (autowrap) (14251)
2001-05-08 08:14:33 +00:00
Sven Wischnowsky
d83665b7cf
fix default colour for directories (3674)
2001-03-15 09:55:32 +00:00
Sven Wischnowsky
c06782d95b
*** empty log message ***
2001-01-18 14:41:40 +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
Sven Wischnowsky
6db6cde964
re-display list for cleanup only if we were in menu selection (13084)
2000-10-25 10:52:25 +00:00
Sven Wischnowsky
9e44b5ea29
add a counter for invalidatelist() to allow finding out if there is a new list (13082)
2000-10-25 08:18:43 +00:00
Sven Wischnowsky
ead3cee30d
avoid printing file type characters in completion lists for matches ending in a slash (13071)
2000-10-24 07:50:24 +00:00