1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-10 22:31:24 +02:00
Commit graph

140 commits

Author SHA1 Message Date
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
50e9ab122b 22556: Multibyte separators and delimiters 2006-07-24 22:00:19 +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
949f5b6dee 22431: set WIDGET etc. more consistently when executing zle functions 2006-04-25 15:00:25 +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
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
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
Peter Stephenson
e66af50a98 22014: argument-base, insert-unicode-char 2005-11-24 10:25:33 +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
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
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
409296e22f 21736: improve tests for word and identifier characters with multibyte input 2005-09-20 15:10:26 +00:00
Peter Stephenson
58b9e731da 21720: fix getrestchar() some more 2005-09-09 16:55:21 +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
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
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
5d7ee7574a 21042: limitations with execute-named-command 2005-03-21 17:07:25 +00:00
Peter Stephenson
31aaabe1bc 20978: don't propagate EOF from recursive edits 2005-03-15 10:50:58 +00:00
Peter Stephenson
f7ceca4fec 20869: more small Unicode tweaks 2005-02-25 15:10:01 +00:00
Peter Stephenson
691dd7e529 20861: Fix statusline in Unicode, apart from isearch 2005-02-24 15:32:36 +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
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
85e0b5f377 20752: fix access to ZLE parameters 2005-01-26 18:12:08 +00:00
Peter Stephenson
efd03cf9e8 20742: More Unicode conversion stuff. 2005-01-25 16:40:41 +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
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
Peter Stephenson
0f1267a8aa 20398: allow clean exit from within widget function 2004-09-21 14:07:41 +00:00
Bart Schaefer
5741e2840f 20388: tweak ignoreeof behavior on user-defined widgets to match docs. 2004-09-20 14:03:36 +00:00
Bart Schaefer
2e9bbdc833 20387: revised algorithm for the fix in 20363. 2004-09-20 13:37:41 +00:00
Peter Stephenson
1268f477b0 20363: Src/init.c, Src/Zle/zle_main.c 2004-09-13 13:04:39 +00:00
Peter Stephenson
d24593bf38 20300: fix spurious EOF from ^C 2004-09-02 09:20:35 +00:00
Peter Stephenson
0cfb07ee92 20153: make zle-line-init run after the first zrefresh() 2004-07-13 09:41:36 +00:00
Peter Stephenson
86ae90bc1c 20149: improve prompt-reset code
20150: commit ancient memory leak fix(?) in completion
2004-07-11 22:53:01 +00:00
Peter Stephenson
8784bbe97c 20126: tidy up before 4.2.1
20127: tweaked version of Wayne's patch to reexand prompts
2004-07-02 15:59:07 +00:00
Peter Stephenson
3c13204e55 7650: new reset-prompt zle widget 2004-07-01 14:55:54 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Peter Stephenson
aa7003e0ca 19840: vared takes one normal argument 2004-04-27 15:16:13 +00:00
Peter Stephenson
5fa91b1116 19837: restore vared -e 2004-04-27 11:03:06 +00:00
Peter Stephenson
4688564c0a 19733 with docs tweaked: keymaps for vared and zed 2004-04-06 09:16:57 +00:00
Peter Stephenson
c5add3e2f5 19671: error in zle-line-init caused infinite loop 2004-03-22 19:51:17 +00:00
Peter Stephenson
2ace0ce4f2 19553: rename c in zle to lastchar 2004-03-08 11:44:09 +00:00
Peter Stephenson
6eb5f99f1e 19295: $CONTEXT zle parameter 2003-12-15 22:45:27 +00:00
Peter Stephenson
1e212cbedc 19281: zle-line-init special widget 2003-12-12 22:53:27 +00:00
Peter Stephenson
a7b9b5f851 19218: extend 19216 to zle widgets 2003-11-03 13:57:52 +00:00
Peter Stephenson
815bc92148 a la 19209: zcalloc -> zshcalloc 2003-10-29 19:17:30 +00:00
Peter Stephenson
b38f3c9a17 18938: Export some data symbols. 2003-08-11 10:45:08 +00:00
Peter Stephenson
1be7d4744d 18559, 18562: make modules use proper option arguments 2003-05-22 09:48:25 +00:00
Peter Stephenson
6d9135befe 18543: memory leak vared'ing arrays 2003-05-19 10:30:42 +00:00
Peter Stephenson
62719196b2 18536: EMACS and VI compatibility options 2003-05-14 15:09:14 +00:00
Peter Stephenson
4c149a8abc 18252: pass ignoreeof as flag to zleread 2003-02-17 14:06:39 +00:00
Peter Stephenson
06d25a35b0 18243: Nasty tty poll fix for Solaris 2003-02-14 19:03:08 +00:00
Peter Stephenson
778a73b027 18139: Improve $killring interface; can now change length. Empty
strings in $killring are ignored when yank-popping.  Yank-popping
is more consistent about looping and using the original cutbuffer.
2003-01-27 14:54:31 +00:00
Peter Stephenson
9634760d5e 17582: Improved option argument handling.
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Sven Wischnowsky
1229d05c19 fix default completion module loading, use compctl if it hasn't been loaded already and no completion widgets have been defined (17567) 2002-08-20 12:28:05 +00:00
Peter Stephenson
76c1e26713 17405: adapt 17390 to reset PREDISPLAY and POSTDISPLAY when zle is entered 2002-07-04 10:13:38 +00:00
Peter Stephenson
a18f020282 17384: new recursive-edit widget. 2002-07-01 09:54:47 +00:00
Peter Stephenson
9e97cfa052 17293: support poll() as preferred alternative to select() in zle 2002-06-06 09:04:46 +00:00
Peter Stephenson
afe1b00e16 17141 plus mods: add `zle -F fd handler' feature. 2002-05-21 11:10:13 +00:00
Sven Wischnowsky
10490ec499 add $redirections array to completion system parameters, containing information about all redirections on the line; make this and compstate[redirect] contain the file descriptor number (16751) 2002-03-01 10:41:59 +00:00
Geoff Wing
cc28002e54 16063: add transientrprompt option to remove right prompt from
display when accepting commands
2001-10-24 07:00:49 +00:00
Andrew Main
b73d71105e 15734: zle -K option to select a keymap, and zle KEYMAP parameter to
examine the current selection.
2001-09-03 01:39:19 +00:00
Bart Schaefer
22faf1fa4b Suppress XTRACE during user-defined widgets. 2001-07-08 00:32:12 +00:00
Bart Schaefer
071b084ea8 Signal queuing tweak. 2001-05-17 15:56:12 +00:00
Peter Stephenson
19a8356ff1 Add `bindkey -p' 2001-03-28 16:54:21 +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
Peter Stephenson
c292a3ae50 Sven: 13108: Handle traps synchronously
pws: 13109, 13111: clear up zle display when output produced in trap.
2000-11-11 19:50:27 +00:00
Bart Schaefer
de595fbc90 Fix "vared -e". 2000-10-22 02:34:16 +00:00
Bart Schaefer
9bf7fb75c5 Fix "vared -h" in shell scripts. 2000-10-21 03:15:36 +00:00
Peter Stephenson
942009eb9f 12719: quoting arrays in vared with real backslashes 2000-08-29 20:27:47 +00:00
Bart Schaefer
7a38b670a7 12621: Avoid bad free. 2000-08-14 16:54:04 +00:00
Sven Wischnowsky
a23d39ce38 make binding of ^D be used in first column if ignoreeof is set and ^D is bound to a shell function widget (12494) 2000-08-03 07:51:53 +00:00
Peter Stephenson
0aee5e1bb4 12414: vared quotes separators when editing arrays 2000-07-27 17:48:47 +00:00
Wayne Davison
90fdda1c33 Call hend() with a NULL arg. 2000-07-19 21:10:18 +00:00
Bart Schaefer
15a6466044 Disable vared only for interactive shells where ZLE has been explicitly
disabled, but also for any shell running in an emacs buffer.
2000-06-01 15:22:15 +00:00
Bart Schaefer
8564aa5c0d Wayne: Fix two history bugs that were causing the
failure of `print -s'.
2000-05-30 03:43:27 +00:00
Sven Wischnowsky
972fe43f51 disable vared if zle is not enabled (11566) 2000-05-26 07:03:43 +00:00
Sven Wischnowsky
7f9f81f3e2 save and restore more variables in bufferwords(); move gotword() into core (11523) 2000-05-23 08:20:56 +00:00
Bart Schaefer
966eca4ad8 11036, 11063, 11077: Always write the "read -q" prompt to shout; eliminate
some redundant close() calls; relocate a misplaced redirection.
2000-05-02 15:52:43 +00:00
Tanaka Akira
e74702b467 Initial revision 1999-04-15 18:05:38 +00:00