1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00
Commit graph

3349 commits

Author SHA1 Message Date
m0viefreak
f06be0ffcf 38291: Change names of ISEARCH_* parameters to ISEARCHMATCH_* 2016-04-23 21:28:20 +00:00
Barton E. Schaefer
222dea055c Mikael Berthe: 38307: PCRE segfault when parenthesized group matches nothing
unposted: regression test for 38307
2016-04-23 14:20:16 -07:00
Barton E. Schaefer
e1c745a0dc 38306: in printf formats, treat a missing precision as zero rather than as unlimited 2016-04-22 10:12:17 -07:00
Oliver Kiddle
267f945ffe 38287: fix position for the end of a visual selection range for the cursor on an empty last line in the buffer 2016-04-14 15:52:50 +02:00
Oliver Kiddle
c7eead3950 38286: cursor correction following yank-pop is only applicable to vi command mode 2016-04-14 15:52:44 +02:00
Barton E. Schaefer
b911398064 38248: fix word position calculation when completing on or just before a redirection operator
The completion result is still in need of some repair; e.g., if the first
thing on the line is the redirection, completion before it is not taken
to be in command position, and in this and other cases a necessary space
is not inserted between the completed word and the redirection.
2016-04-07 20:24:43 -07:00
Barton E. Schaefer
70fb93b64e 38229: fix cursor placement calculation when completing in empty double quotes 2016-04-05 16:14:55 -07:00
Peter Stephenson
2b7035d974 38241: ungetkeycmd() needs to unmetafy key string.
Use the new function to simplify memory management in prefix handling.

Third time lucky.
2016-04-04 14:54:54 +01:00
Barton E. Schaefer
1ea94513cc Dmitry Marakasov: 38162: accept G for gigabytes in limit command
from github pull request - some formatting edited
2016-03-26 09:45:47 -07:00
Barton E. Schaefer
21202e7b95 38191: additional re-entrancy checks in reexpandprompt()
Do not free global pointers until after promptexpand() in case they are
referenced from signal handlers, and check for window size changes during
promptexpand().
2016-03-21 15:46:59 -07:00
Barton E. Schaefer
09e991a20a 38188: signal re-entrancy, maybe
Crams several globals into a struct so they can be saved/restored as one,
and then tries pushing the signal queue management down into patmatch()
from pattryrefs().
2016-03-21 15:46:59 -07:00
Barton E. Schaefer
ef6f1eb1c5 38142: signal re-entrancy, maybe 2016-03-21 15:46:59 -07:00
Peter Stephenson
b81b275ab3 Remove unnecessary file 2016-03-21 19:46:26 +00:00
m0viefreak
cbc44bd64a 38145: ZLE parameters for isearch and completion suffixes 2016-03-21 09:43:29 +00:00
Daniel Shahaf
c82ce14950 38135: internal: bin_compadd: Add a few comments. 2016-03-11 22:19:09 +00:00
Peter Stephenson
f4dfca490c 38114: Fix hang using ^Z with command subst.
In subshells started to perform substitutions disable signals
that require interactive handling.
2016-03-09 09:51:14 +00:00
Oliver Kiddle
8c29b34032 38043: allow any completion widget to cycle matches for menu completion to fix reverse menu completion 2016-03-07 13:15:40 +01:00
Peter Stephenson
28c46c1bfb 38111: Remove redundant return values in parsing.
Return values from par_list() and par_list1() are no longer used.
2016-03-07 10:49:35 +00:00
Peter Stephenson
dc2397f754 users/21352: ensure $'' doesn't get elided.
Assign nulstring to it if empty.  Test for all forms of quotation
marks.
2016-03-07 09:44:54 +00:00
Peter Stephenson
17fb014dc7 38094: Fix POSIX EXIT traps defined in function.
These aren't local, so set the local level to 0; else they can get
overridden incorrectly.
2016-03-07 09:42:21 +00:00
Barton E. Schaefer
bc958ab275 38106: if...then if...else should be a parse error. 2016-03-06 15:10:27 -08:00
Greg Klanderman
440c6beec0 38086: shuffle init code to localize a global, add $ZSH_ARGZERO, refine $ZSH_SCRIPT
(also a couple of ChangeLog typos corrected -- Bart)
2016-03-06 09:53:40 -08:00
Barton E. Schaefer
564fb25e82 38048: fix "zle redisplay" when called while a listing is below the prompt 2016-03-03 13:03:40 -08:00
Barton E. Schaefer
6756870a92 38039: POSIXy behavior for "set +o" 2016-03-03 13:01:08 -08:00
Stephane Chazelas
f7d5ff31ce 38020: fix problems with $SECONDS.
Fractions of a second were not handled correctly.
2016-02-26 11:12:32 +00:00
Peter Stephenson
c55d855171 38024: Improve POSIX and native EXIT traps compatibility.
Allow a nested function trap to leave save and restore a POSIX
trap.

Still fails if the POSIX trap was defined in a function.
2016-02-25 14:20:26 +00:00
Barton E. Schaefer
c3f4d18e4f 38001: clear-screen re-expands prompts 2016-02-17 20:04:25 -08:00
Barton E. Schaefer
b7b3ae311d 37988: $0 becomes read-only under POSIXARGZERO 2016-02-17 20:04:25 -08:00
Peter Stephenson
ab74c86edb 37999: Sticky behaviour of EXIT traps.
They now have POSIX or non-POSIX behaviour based on the setting
of POSIX_TRAPS where the trap was defined, rather than where the
trap would (or would not) be executed.

Tweaks possible.
2016-02-17 10:40:55 +00:00
Daniel Shahaf
f96a016728 users/21256 + workers/37965: New math functions min(), max(), sum(), provided by a new autoloadable function 'zmathfunc'. 2016-02-16 10:52:27 +00:00
Barton E. Schaefer
f07a1bd009 37961: fix crash on bad memory access
In interactive menuselection, use of "compadd -x" (e.g. the "warnings"
zstyle) may have replaced the completion list, so skip highlighting of
the current selection until a subsequent keystroke has regenerated the
original listing
2016-02-14 11:13:17 -08:00
Barton E. Schaefer
1b923f69c7 37927: recreate local keymaps as necessary in case the user has deleted them 2016-02-13 12:51:12 -08:00
Peter Stephenson
6d82ce161a 37946: make rm * warnings more informative.
Now count files that would be deleted up to 100.
2016-02-11 15:23:57 +00:00
Barton E. Schaefer
95663e9365 37914: reparse associative array subscripts in "unset" so keys with "[" or "]" may be backslash-escaped
Also fix erroneous test case this revealed.
2016-02-08 20:52:11 -08:00
Peter Stephenson
1ab316c9b8 37895: $ZSH_SCRIPT is POSIX $0 but always availble 2016-02-07 21:01:08 +00:00
Jun-ichi Takimoto
2175399b70 37874: remove unused function argument 2016-02-04 08:23:02 +09:00
Jun-ichi Takimoto
a4020e10a3 37868: add 'static' to file local variables 2016-02-03 01:25:33 +09:00
Barton E. Schaefer
69acac38c9 37859: NULL-terminate cond_binary_ops static array. 2016-01-31 15:19:56 -08:00
Jun-ichi Takimoto
ca3bc0d95d 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
Daniel Shahaf
bced1beb8c 37700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax. 2016-01-29 09:14:53 +00:00
Barton E. Schaefer
0b37b5149d 37804 (plus 37816): first word following "repeat" should be evaluated as math 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
d18476ce5c 37819: zshaddhistory hook works for any history file write, even upon keyboard interrupt 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
572f8c85ab 37810: repair handling of backslashes and of names starting with "+"/":"/"=" in zparseopts option specs 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
8ddcdad0c1 37802: Clarify zparseopts documention. zparseopts "X::" specifier should also look for the optional argument in the word after "-X". 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
10c5f95f52 37785: skip autoload parameters for "typeset -p" 2016-01-26 18:17:24 -08:00
Kamil Dudka
69c86cd2c3 37780: Care printing error if nothing to print. 2016-01-25 17:15:23 +00:00
Jun T
1d98f77a9b Jun T.: 37759: save more function pointers from realparamtab when hacking in their replacements
Restoring from the original external symbols fails for some dynamic link schemes (e.g. 64bit Cygwin).
2016-01-25 08:28:30 -08:00
Peter Stephenson
7c59c953f2 37765: Use FS_FUNC on fucstack to find autoload -X target.
This is better than scriptname which can be updated due to e.g.
intervening "eval".
2016-01-25 16:23:16 +00:00
Peter Stephenson
be32864e6f 37776: Set errflag before calls to zwarning().
This avoids an attempt to call zerr() or zerrnam() recusrively.
2016-01-25 15:43:06 +00:00
Peter Stephenson
1aec003155 37722: test builtin should return status 2 on syntax error 2016-01-21 16:30:21 +00:00