1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00
Commit Graph

426 Commits

Author SHA1 Message Date
Peter Stephenson
fb79072575 20303: zle -I test and running zle widgets in traps 2004-09-02 14:34:33 +00:00
Peter Stephenson
d24593bf38 20300: fix spurious EOF from ^C 2004-09-02 09:20:35 +00:00
Wayne Davison
0aa5829cc7 When downline() calls upline() or visa versa (due to a negative zmult),
the value of "n" that was returned should be negative but was positive.
Fixes some problems with {down,up}-line-or-history and others.
2004-08-24 15:47:04 +00:00
Peter Stephenson
efe2876d92 20219: make zle parameter HISTNO writeable
add history-pattern-search widget
2004-07-29 14:21:57 +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
aad11eb618 unposted: improve 20150 by setting pointer to NULL 2004-07-12 10:05:46 +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
Felix Rosencrantz
ba2415ce67 20002 -- fix for matching spec core dump 2004-06-04 06:00:32 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Wayne Davison
12b2ed63ab Silenced one signed/unsigned comparison compiler warning. 2004-05-28 19:24:13 +00:00
Wayne Davison
b5d7902c20 Silenced three signed/unsigned comparison compiler warnings. 2004-05-28 19:23:47 +00:00
Wayne Davison
14c7f464c2 Silenced two signed/unsigned comparison compiler warnings. 2004-05-28 19:21:05 +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
bb9d76469e zsh-users/7160: Check and fix mod_export entries. 2004-03-12 18:56:42 +00:00
Oliver Kiddle
95231270ed 19595: rename DO to DOLOOP to avoid conflict with curses.h on Tru64 5.1 2004-03-11 14:25:12 +00:00
Peter Stephenson
2ace0ce4f2 19553: rename c in zle to lastchar 2004-03-08 11:44:09 +00:00
Geoff Wing
8026bedc1c 19474: fix a calculation when displaying completions which are
screen width or multiples of that wide, and ALWAYS_LAST_PROMPT
2004-03-05 00:51:36 +00:00
Wayne Davison
326fb2d483 Fixed two cases where unmetify() was using an int* to store a value
into a size_t variable.
2004-03-03 18:47:52 +00:00
Oliver Kiddle
0b787b5da2 19525: suppress compiler warnings and complete groups using lookupd on Mac OS 2004-03-03 11:05:40 +00:00
Peter Stephenson
2073eca9f3 19456: Fix ptmx tests, again. 2004-02-20 15:27:35 +00:00
Wayne Davison
cd7bfcf690 Silenced some compiler warnings about uninitialized variables. 2004-02-19 09:11:40 +00:00
Oliver Kiddle
7feb529776 19422: fix crash resulting from passing a long option to compctl 2004-02-15 12:55:30 +00:00
Wayne Davison
ba827bb22b Another fix in sub_match() to avoid allowing a partial-meta match
to occur (this time in the backwards scan).
2004-02-10 02:30:14 +00:00
Wayne Davison
6fd883c737 Optimized the check for a widowed Meta character. 2004-02-09 05:49:52 +00:00
Peter Stephenson
0167f8d036 19385: NULL dereference in add_match_part 2004-01-20 10:55:24 +00:00
Peter Stephenson
66329cbe4c 19336: Src/Zle/compmatch.c: Bug with metafied characters in length of
completion prefix
2004-01-05 17:28:49 +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
a6a63a147e 19242: Make job table dynamically reallocatable. 2003-11-13 14:34:33 +00:00
Peter Stephenson
a7b9b5f851 19218: extend 19216 to zle widgets 2003-11-03 13:57:52 +00:00
Felix Rosencrantz
9644fbfb3f Added *.dll to .cvsignore and fixed typo. (unposted) 2003-11-03 04:26:51 +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
1f8c031467 18926: problem accepting filename require metafication with menu selection 2003-08-05 10:12:08 +00:00
Wayne Davison
1495a7e008 Don't crash if alt-y is typed twice in a row without a prior ctrl-y. 2003-07-29 09:53:26 +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
2b744cb21d 18513: Work around crash on resize in menu selection 2003-05-14 10:16:01 +00:00
Andrey Borzenkov
bd4cb9a4d1 unposted: cvsignore VIM *.swp files 2003-05-05 06:14:49 +00:00
Andrey Borzenkov
f318d64e3d 18476: Fix menu selection on Linux console 2003-05-05 06:07:04 +00:00
Peter Stephenson
807e5536a5 18477: Null pointer dereferenced in _arguments "*-+bar" 2003-04-23 18:50:34 +00:00
Felix Rosencrantz
6bd0c51366 workers-18440: add previously added cygwin completion functions to the completion module 2003-04-08 15:34:51 +00:00
Peter Stephenson
63de268fee 18378: fix lots of problems with $killring 2003-03-24 13:57:38 +00:00
Peter Stephenson
5660eb86ac 183818: memory leak in zle_params.c 2003-03-05 17:24:37 +00:00
Peter Stephenson
e0d2c9c0b3 18313: NULL pointer dereference if yank-pop after a single yank 2003-02-27 11:32:44 +00:00
Geoff Wing
8e50782a72 18306: fix redisplay of rprompt when line shortens 2003-02-27 02:37:29 +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
Oliver Kiddle
c1467e410d 18238: bashcompinit was not being installed with --enable-function-subdirs 2003-02-13 16:34:19 +00:00
Peter Stephenson
809ab19dff 18191: from Greg Klanderman: compctl -y didn't respect list arrangement
options listpacked and listrowsfirst.
2003-02-06 10:29:30 +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
1e7c463fd9 18059: allow compadd -r and -R with default space suffix 2003-01-13 10:32:03 +00:00
Felix Rosencrantz
e91067d966 17983: Added zle LASTSEARCJ parameter 2002-12-06 23:24:06 +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
de670cbb58 fix typo in comment (17569) 2002-08-20 15:21:54 +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
Sven Wischnowsky
273929e188 make sure invalidatelist() isn't called hwen we are inside menu selection and there's only one match left (17489) 2002-07-30 07:47:03 +00:00
Sven Wischnowsky
def8d4afda remove qword, it isn't needed anymore (17439) 2002-07-08 09:03: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
Peter Stephenson
76c1e26713 17405: adapt 17390 to reset PREDISPLAY and POSTDISPLAY when zle is entered 2002-07-04 10:13:38 +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
Peter Stephenson
1a1b108b34 17390: new zle parameters $PREDISPLAY, $POSTDISPLAY 2002-07-01 16:50:41 +00:00
Peter Stephenson
a18f020282 17384: new recursive-edit widget. 2002-07-01 09:54:47 +00:00
Sven Wischnowsky
053629183d add new sepcial context -assign-parameter- for completing the parameter in an assignment (17387) 2002-07-01 08:25:15 +00:00
Sven Wischnowsky
d28f67623f two new modes for menu selection: incremental search and interactive (17366) 2002-06-26 11:07:42 +00:00
Peter Stephenson
03105a5d6e 17360: more lenient accept-line-and-down-history behaviour
17361: more careful about NULL history entries in zle
2002-06-24 18:21:18 +00:00
Peter Stephenson
36765a58a6 17350: add $CUTBUFFER and $killring zle parameters 2002-06-24 09:51:59 +00:00
Peter Stephenson
b673918c0f 17304: tweak to tweak the tweaked tweak for zle -I in 17301 2002-06-07 18:04:06 +00:00
Peter Stephenson
37199039b2 17301: improve zle -I. 2002-06-07 10:57:24 +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
9c8b79b993 17295: `zle -F' failed because of bad test 2002-06-05 21:12:08 +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
9b5b330799 report option arguments to _arguments in the original form (17196) 2002-05-23 12:22:58 +00:00
Sven Wischnowsky
d786ca4438 allow multiple lines in option completion lists to share the same description, for (hopefully) cleaner displays (17212) 2002-05-23 12:15:03 +00:00
Peter Stephenson
afe1b00e16 17141 plus mods: add `zle -F fd handler' feature. 2002-05-21 11:10:13 +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
12f253e7e6 improve calculation of used columns for match-max-length (17194) 2002-05-21 08:04:34 +00:00
Sven Wischnowsky
654c4ab4ff fix for completion in nested quotes where the sub-word ends in a backslash (17192) 2002-05-21 07:47:34 +00:00
Sven Wischnowsky
d4ec8d06bf avoid printing in the last screen column when preparing a completion listing with compdescribe (17190) 2002-05-21 07:39:40 +00:00
Sven Wischnowsky
cd50acd08d follow-up to 17135, backslash-quoted backslashes in double quotes weren't right, yet (17163) 2002-05-15 07:40:33 +00:00
Sven Wischnowsky
b0e4b61a82 allow users to give the maximum number of display-columns the matches should take up via the style currently named max-match-length (17147) 2002-05-14 08:01:12 +00:00
Sven Wischnowsky
0cfe1b30be fix for unquoting with `compset -q' with singly and doubly quoted strings (17135) 2002-05-13 09:31:59 +00:00
Andrey Borzenkov
e484b0f83c 17075, 17076: _urpmi and chkconfig/services 2002-05-08 09:18:12 +00:00
Sven Wischnowsky
ed98c0bed8 fix two memory leaks (found by Felix): pre-compiled patterns when re-defining styles and compredirs-copies in comp_wrapper() (17029) 2002-04-24 07:59:17 +00:00
Sven Wischnowsky
f78df94c6a make compvalues unquote the string from the line like comparguments does (16998) 2002-04-17 07:28:17 +00:00
Sven Wischnowsky
e9a2060fe9 treat backslashed bangs in double quotes specially in get_comp_string(), they are more like $s there (16990) 2002-04-16 07:53:13 +00:00
Sven Wischnowsky
45f9a36216 remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819) 2002-03-13 09:28:04 +00:00
Sven Wischnowsky
6bfc325a94 don't try to build the redirection string for the loops (for, foreach, select) (16776) 2002-03-07 08:38:44 +00:00
Peter Stephenson
849f4068de 16767: Src/Zle/zle_hist.c, Doc/Zsh/zle.yo, Doc/Zsh/contrib.yo,
Functions/Zle/copy-earlier-word:  Enhance insert-last-word to
pick different lines from the history (including the current
line) and different words from that line.  Add copy-earlier-word
as suggested by Dominik Vogt to copy words from either the
current line, or (following an insert-last-word) a previous
history line.
2002-03-05 16:33:19 +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