Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 47352 (+ extra test cases): fix %<n>K prompt expansion | Stephane Chazelas | 2020-09-10 | 1 | -1/+1 | |
| | | | | | | | | | | | Fixed a regression introduced by workers/30496 (5.0.3) whereby %2K would no longer be the equivalent of %K{2} (%K{green}) in prompt expansion. That was one missing case where the is_fg flag was not passed along to match_colour() after code factorisation. Add tests for the different syntax variants, using echoti as a reference. | |||||
* | github #64: Fix a build-time error when building against ncurses that hadn't ↵ | Daniel Shahaf | 2020-08-28 | 1 | -1/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | been built with --enable-wgetch-events. The --enable-wgetch-events codepath is experimental (according to ncurses-6.2/INSTALL) and off by default (according to ncurses-6.2/configure.in). With that codepath disabled, the macro KEY_EVENT is not provided, which (before this commit) manifested as a build-time error: [ 245s] gcc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I. -DHAVE_CONFIG_H -DMODULE -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fPIE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -fPIC -o curses..o curses.c [ 246s] In file included from curses.c:210: [ 246s] curses_keys.h:93:15: error: 'KEY_EVENT' undeclared here (not in a function); did you mean 'KEY_RESET'? [ 246s] 93 | {"EVENT", KEY_EVENT}, [ 246s] | ^~~~~~~~~ [ 246s] | KEY_RESET curses_keys.h is only used for setting the "kevent" output parameter of 'zcurses input' (and the associated $zcurses_keycodes special variable), so there's no harm in just leaving KEY_EVENT out of it. (That codepath deals gracefully with numeric values that don't correspond to any of the known compile-time values, as that can happen whenever the build- and run-time versions of ncurses don't provide the same set of KEY_* macros, with or without relation to that configure flag.) Reported by Martin Liska. | |||||
* | 47296 (+ unposted additional tests and comments): 'repeat' loops: Let the ↵ | Daniel Shahaf | 2020-08-08 | 1 | -1/+1 | |
| | | | | | | repeat count use $?. It's an arithmetic expression. | |||||
* | 47300: Document the EC_NODUP, EC_DUP, EC_DUPTOK triplet. | Daniel Shahaf | 2020-08-08 | 2 | -3/+27 | |
| | | | | All uses reviewed; no functional change. | |||||
* | unposted: comments explaining how hashtable must be created | Roman Perepelitsa | 2020-07-29 | 1 | -1/+4 | |
| | | | | See zsh-workers 46277, 46278, 46279. | |||||
* | 46275: eliminate undefined behavior caused by redefinition of hashtable | Roman Perepelitsa | 2020-07-29 | 2 | -55/+56 | |
| | | | | | struct hashtable has different set of data members in different translation units. This is undefined behavior. | |||||
* | 46268: suppress a useless compiler warning around nice() | Roman Perepelitsa | 2020-07-28 | 1 | -2/+1 | |
| | | | | | | | From nice(2): To detect an error, set errno to 0 before the call, and check whether it is nonzero after nice() returns -1. | |||||
* | 46152: zsh/system: Re-allow '0' timeout in zsystem flock | Cedric Ware | 2020-07-11 | 1 | -3/+3 | |
| | ||||||
* | 46175/0003: Fix the RM_STAR_SILENT bug from the parent commit. | Daniel Shahaf | 2020-07-05 | 1 | -1/+1 | |
| | ||||||
* | 46168: Update $PWD and call chpwd hook after normalizing path | Matthew Martin | 2020-07-03 | 1 | -18/+17 | |
| | ||||||
* | users/24971: ${(-)var} sorts on signed integers | Peter Stephenson | 2020-07-03 | 3 | -9/+27 | |
| | ||||||
* | unposted (after 46068): Fix a compiler warning. | Daniel Shahaf | 2020-06-27 | 1 | -1/+1 | |
| | | | | | | | The warning was: . warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |||||
* | 46072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve ↵ | Daniel Shahaf | 2020-06-27 | 1 | -2/+17 | |
| | | | | | | add-zle-hook-widget support for multiple hook functions. See workers/46004 for the use-case. | |||||
* | 46100: Fix =subst before =(subst) | Peter Stephenson | 2020-06-26 | 1 | -1/+1 | |
| | | | | | | This occurs with SH file expansion ordering. Add test. | |||||
* | 46068 (tweaked) (was: github #57): region_highlight: Add memo= support. | Daniel Shahaf | 2020-06-25 | 4 | -9/+87 | |
| | | | | | | | | | | | | | | | | This is useful when multiple plugins add region_highlight entries and subsequently want to remove only their own entries. Without this functionality, recognizing one's region_highlight entries is not trivial because the 'start' and 'end' offsets are modified by editing of $BUFFER and the highlight specification may not be unique or distinctive. The tweaks are as follows: - Change zfree() to zsfree() per workers/46070. - Remove the mem.c hunk, as it changed the signature of only one out of two alternative definitions of zsfree(). (The definition that hunk touched is the one that's not used by default.) | |||||
* | 46079: Ignore double quotes in math expressions. | Peter Stephenson | 2020-06-23 | 1 | -0/+2 | |
| | | | | | | | Treat as white space. This is required for compatibility and previously had no use in zsh as it generated an error. | |||||
* | 46060: Fix spurious actions on exit status 130 or 131. | Peter Stephenson | 2020-06-18 | 1 | -4/+7 | |
| | | | | Ensure process has taken a signal before looking for SIGINT or SIGQUIT. | |||||
* | 46026: Add CLOBBER_EMPTY option. | Peter Stephenson | 2020-06-09 | 3 | -5/+24 | |
| | ||||||
* | users/24909: Don't clean up special file list too early. | Peter Stephenson | 2020-06-08 | 1 | -1/+1 | |
| | | | | | When running a function, remove special files used for substitution after the function has run rather than before. | |||||
* | typeset: Fix leaving corrupted entries in paramtab | Mikael Magnusson | 2020-06-05 | 1 | -3/+9 | |
| | ||||||
* | 45915: fix handling of hyphens in spckword() | Bart Schaefer | 2020-05-30 | 1 | -5/+11 | |
| | ||||||
* | 45923 (with memory leak fixed, cf. 45924): zprof: Don't tally all anonymous ↵ | Daniel Shahaf | 2020-05-28 | 2 | -5/+46 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | functions as though they were a single function named "(anon)". Before: % zmodload zsh/zprof % () : % () : % zprof num calls time self name ----------------------------------------------------------------------------------- 1) 2 0.08 0.04 100.00% 0.08 0.04 100.00% (anon) After: % zmodload zsh/zprof % () : % () : % zprof num calls time self name ----------------------------------------------------------------------------------- 1) 1 0.04 0.04 50.45% 0.04 0.04 50.45% (anon) [:3] 2) 1 0.04 0.04 49.55% 0.04 0.04 49.55% (anon) [:2] | |||||
* | 45900: Fix issues with escaped newline in $-substitution. | Peter Stephenson | 2020-05-23 | 1 | -0/+21 | |
| | ||||||
* | Support ${name:offset:length} with an empty offset | Mikael Magnusson | 2020-05-12 | 1 | -5/+15 | |
| | ||||||
* | 45772: Restore locale on parameter scope end. | Peter Stephenson | 2020-05-05 | 1 | -0/+34 | |
| | | | | Check if relevant parameters changes and if so restore system settings. | |||||
* | unposted: add a comment about how to add a new resource | Jun-ichi Takimoto | 2020-05-03 | 1 | -0/+7 | |
| | ||||||
* | 45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely. | Daniel Shahaf | 2020-05-03 | 2 | -6/+49 | |
| | | | | Also, write/extend docstrings for sepjoin() and zjoin(). | |||||
* | 45729: internal: Add a second parameter to zlinklist2array(), analogously to ↵ | Daniel Shahaf | 2020-05-03 | 5 | -15/+20 | |
| | | | | | | hlinklist2array(). Will be used in the next commit. | |||||
* | 45737 (+ docs, and update the test from 45722): zstyle: When determining the ↵ | Daniel Shahaf | 2020-05-02 | 1 | -2/+11 | |
| | | | | weight (specificity) of a pattern, consider the number of components before anything else, as documented. | |||||
* | 45708: zsh/system: Enable sub-second timeout in zsystem flock | Cedric Ware | 2020-04-20 | 3 | -5/+136 | |
| | ||||||
* | 45660: Fix crash setting vi or emacs mode on command line. | Peter Stephenson | 2020-04-09 | 2 | -8/+24 | |
| | | | | Delay setting the option until the module system is set up. | |||||
* | Add SHORT_REPEAT option | Mikael Magnusson | 2020-04-02 | 4 | -2/+4 | |
| | ||||||
* | 45616: Remove token from count argument to repeat | Peter Stephenson | 2020-03-26 | 1 | -1/+3 | |
| | ||||||
* | 45583/0008: Extend tests to prove that what remains of xsymlinks() handles ↵ | Daniel Shahaf | 2020-03-25 | 1 | -2/+0 | |
| | | | | symlink loops gracefully. | |||||
* | 45583/0007: Remove code that is now unreachable. | Daniel Shahaf | 2020-03-25 | 1 | -17/+4 | |
| | ||||||
* | 45583/0006: Don't use xsymlinks() in 'whence -s'. | Daniel Shahaf | 2020-03-25 | 1 | -4/+14 | |
| | ||||||
* | 45583/0004: Fix segfault on resolving symlink loops | Daniel Shahaf | 2020-03-25 | 1 | -3/+3 | |
| | ||||||
* | 45583/0003: chrealpath: Let caller decide how the return value should be ↵ | Daniel Shahaf | 2020-03-25 | 2 | -6/+9 | |
| | | | | allocated. | |||||
* | 45583/0002: chrealpath: Make symlink resolution optional. | Daniel Shahaf | 2020-03-25 | 2 | -7/+18 | |
| | ||||||
* | 45563: %z can be used for zlong in warnings and errors | Peter Stephenson | 2020-03-22 | 1 | -0/+9 | |
| | ||||||
* | 45583/0009: Add end-of-options guard support to 'function -T'. | Daniel Shahaf | 2020-03-22 | 1 | -4/+12 | |
| | ||||||
* | 45583/0008: Add the 'function -T' syntax. | Daniel Shahaf | 2020-03-22 | 2 | -5/+14 | |
| | | | | Config/version.mk was bumped in the previous commit. | |||||
* | 45583/0007: WC_FUNCDEF: Add a placeholder element. | Daniel Shahaf | 2020-03-22 | 3 | -2/+8 | |
| | ||||||
* | 45583/0006: internal: Add some comments for orientation. No functional change. | Daniel Shahaf | 2020-03-22 | 1 | -8/+8 | |
| | ||||||
* | 45583/0005: internal: Document the WC_FUNCDEF data layout for anonymous ↵ | Daniel Shahaf | 2020-03-22 | 1 | -2/+8 | |
| | | | | functions with arguments (follow-up to 29492) | |||||
* | 45583/0004: internal: Add some comments around wordcodes. No functional change. | Daniel Shahaf | 2020-03-22 | 2 | -2/+13 | |
| | ||||||
* | 45583/0003: internal: Add some comments around Eccstr. No functional change. | Daniel Shahaf | 2020-03-22 | 2 | -6/+49 | |
| | ||||||
* | 45583/0002: internal: Reduce some variables' visibility. No functional change. | Daniel Shahaf | 2020-03-22 | 1 | -8/+7 | |
| | ||||||
* | 45583/0001: internal: Remove a redundant assignment. | Daniel Shahaf | 2020-03-22 | 1 | -1/+0 | |
| | | | | The value is overwritten five lines below, without being read in the interim. | |||||
* | unposted: Deconfuse $EDITOR's balanced braces mode. No functional change. | Daniel Shahaf | 2020-03-20 | 1 | -2/+3 | |
| |