Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 39981: Make compstate[to_end] skip suffix and hidden suffix, but not ignored ↵ | Daniel Shahaf | 2016-11-21 | 1 | -0/+4 |
| | | | | | | suffix. Motivated by 39930. | ||||
* | 39986, 39989: improve handling of vi-repeat-change | Oliver Kiddle | 2016-11-20 | 7 | -84/+123 |
| | | | | | | Save previous vi change and throw away a new change that fails. Add zle -f vichange to allow shell widget to be a single change. Fix repeat of command where numeric arguments were multiplied. | ||||
* | 39900: Add TERMINFO_DIRS special like TERMINFO. | Guillaume Maudoux | 2016-11-20 | 1 | -0/+31 |
| | | | | Although this is a colon-separated array there is no tied array. | ||||
* | 39995 (from 39977): Optimise string parameter assignment. | Peter Stephenson | 2016-11-20 | 1 | -8/+31 |
| | | | | | If setter is the standard one and string length is unchnaged we can copy into place. | ||||
* | 39992: setarrvalue: Allocate a correctly-sized array. | Daniel Shahaf | 2016-11-20 | 1 | -2/+10 |
| | | | | | No memory was lost; the array was allocated with room for one (char *) element more than was required. | ||||
* | unposted (after 39952): Restore C89 compatibility. | Daniel Shahaf | 2016-11-20 | 1 | -1/+2 |
| | |||||
* | 39958: Add extra byte to PATH_MAX allocations. | Peter Stephenson | 2016-11-17 | 7 | -22/+22 |
| | | | | | This ensures we've got enough space for a null, although this isn't always needed. | ||||
* | 39915: whence: Honor PATH_DIRS option for arguments that start with './' or ↵ | Daniel Shahaf | 2016-11-17 | 1 | -7/+16 |
| | | | | | | '../'. While here, add some docstrings. | ||||
* | 39962: bind vi case conversion widgets | Oliver Kiddle | 2016-11-17 | 1 | -0/+3 |
| | | | | u/U in visual mode and g~ from normal mode | ||||
* | 39959: when repeating vi changes advance through the numbered killring registers | Oliver Kiddle | 2016-11-17 | 1 | -9/+26 |
| | | | | | Also fix numeric arguments with vi-repeat-change: and argument passed to the repeat replaces that previously saved with the change. | ||||
* | 39952: add registers special parameter to provide access to the vi register ↵ | Oliver Kiddle | 2016-11-17 | 1 | -0/+99 |
| | | | | buffers from a zle widget function | ||||
* | 39945: allow further tab presses to move on to menu completion even when ↵ | Oliver Kiddle | 2016-11-16 | 1 | -0/+1 |
| | | | | compstate[insert] is emptied | ||||
* | 39943: no need to compute arrlen() in arrdup_max() when max == 0. | Barton E. Schaefer | 2016-11-15 | 1 | -2/+3 |
| | |||||
* | 39949: Special case for "-" in directory names. | Peter Stephenson | 2016-11-15 | 2 | -39/+47 |
| | | | | | It can be sh-tokenized to Dash to allow for appearing in ranges after substitution, so needs to be turned back to "-" in that case. | ||||
* | 39937: fix a problem introduced by 39886. | Jun-ichi Takimoto | 2016-11-15 | 1 | -3/+4 |
| | | | | $a[i,j] should become an empty array if i>j. | ||||
* | 39906: More multibyte optimisations for US-ASCII. | Peter Stephenson | 2016-11-14 | 1 | -3/+23 |
| | | | | | This treats characters 0 to 0x7f as single byte US-ASCII along the lines we already do in other places in the code. | ||||
* | unposted: comment in zlecallhook() points to redrawhook() just in case | Barton E. Schaefer | 2016-11-13 | 1 | -0/+2 |
| | |||||
* | 39934: if a widget execution fails, try to execute a corresponding immortal ↵ | Barton E. Schaefer | 2016-11-13 | 1 | -3/+15 |
| | | | | widget instead. | ||||
* | 39933: more of zlecallhook() in redrawhook() | Barton E. Schaefer | 2016-11-13 | 1 | -2/+17 |
| | | | | add commentary on some of the differences | ||||
* | 39893: use arrdup_max() to show explicitly the difference in two code branches | Barton E. Schaefer | 2016-11-10 | 1 | -3/+2 |
| | | | | no functional change | ||||
* | 39874/0002 plus size=0 handling: zshcalloc: Remove code duplication. No ↵ | Daniel Shahaf | 2016-11-11 | 1 | -9/+1 |
| | | | | functional change. | ||||
* | 39874/0001: setarrvalue: Remove needless initialization. | Daniel Shahaf | 2016-11-11 | 1 | -2/+2 |
| | |||||
* | 39901: No EXIT trap on LHS of pipeline. | Peter Stephenson | 2016-11-10 | 1 | -0/+4 |
| | | | | | There is a special case if the LHS is a shell construct. Add unit tests for both cases. | ||||
* | 39887: no need to conditionalise assignment of strlen() | Peter Stephenson | 2016-11-09 | 1 | -6/+2 |
| | |||||
* | 39886 based on 39877: Optimise arrdup to arrdup_max. | Peter Stephenson | 2016-11-09 | 2 | -7/+42 |
| | | | | Only duplicate as much of the array as is needed. | ||||
* | 39875: add dupstring_glen to avoid redundant strlen calls | Sebastian Gniazdowski | 2016-11-09 | 2 | -2/+19 |
| | |||||
* | 39871: cut down number of strlen()s in getstrvalue() | Sebastian Gniazdowski | 2016-11-08 | 2 | -4/+26 |
| | |||||
* | 39870: ensure exit trap can always run | Peter Stephenson | 2016-11-08 | 1 | -0/+5 |
| | |||||
* | unposted: follow up to 39867: don't need test against zero | Peter Stephenson | 2016-11-08 | 1 | -1/+1 |
| | |||||
* | 39869: can transfer ownership of core of array when assigning | Sebastian Gniazdowski | 2016-11-08 | 1 | -3/+8 |
| | |||||
* | 39867, tweaked: Use cast to unsigned char to test character. | Peter Stephenson | 2016-11-08 | 1 | -1/+1 |
| | | | | | We want the unsigned variant to be <= 0x7f. Use the normal STOUC() macro and turn this into a single test. | ||||
* | 39728: define _GNU_SOURCE on Cygwin | Jun-ichi Takimoto | 2016-11-07 | 2 | -4/+1 |
| | |||||
* | 39844: fix "while" condition as per 39839 (commit 2c56c7e5) | Barton E. Schaefer | 2016-11-05 | 1 | -4/+3 |
| | |||||
* | 39839: fix "return" from "if" condition | Barton E. Schaefer | 2016-11-05 | 1 | -1/+2 |
| | |||||
* | 39838: another missing unqueue_signals() | Barton E. Schaefer | 2016-11-05 | 1 | -0/+1 |
| | |||||
* | 39829: when compstate[insert] is emptied by the completion function and ↵ | Oliver Kiddle | 2016-11-05 | 1 | -2/+8 |
| | | | | AUTO_MENU is set, start menu completion on the second tab press rather than the third | ||||
* | 39834: when print used with -v and -l, include a final newline | Oliver Kiddle | 2016-11-05 | 1 | -1/+2 |
| | | | | | Also complete print -S option and make further use of the new printf to an array feature in other completion functions. | ||||
* | 39389: when printf -v is used with an array use separate elements each time ↵ | Oliver Kiddle | 2016-11-05 | 1 | -13/+38 |
| | | | | the format is reused | ||||
* | 39825: optimise mb_metastrlenend() for 7-bit character. | Peter Stephenson | 2016-11-04 | 1 | -1/+16 |
| | | | | | | As the shell relies intimately on US-ASCII as a subset we can skip the multibyte functions if we are dealing with a complete 7-bit character. | ||||
* | unposted: comment explaining key buffer handling. | Peter Stephenson | 2016-11-03 | 1 | -0/+7 |
| | | | | | Describe putting back the tail end of the key buffer into the input. | ||||
* | 39806: internal: Document zle's vichgbuf. | Daniel Shahaf | 2016-11-03 | 1 | -0/+9 |
| | |||||
* | 39805: internal: Document some compadd internals. | Daniel Shahaf | 2016-11-03 | 2 | -12/+19 |
| | |||||
* | 39804: internal: Document matchspec flags. | Daniel Shahaf | 2016-11-03 | 2 | -4/+10 |
| | |||||
* | 39803: internal: Document bin_compadd(). | Daniel Shahaf | 2016-11-03 | 1 | -10/+10 |
| | |||||
* | 39802: internal: Document and simplify multiquote(). | Daniel Shahaf | 2016-11-03 | 2 | -6/+18 |
| | | | | | | | The code simplifications take advantage of the fact that all callers pass either 0 or 1 for 'ign'. The tildequote() text is from workers/39271. | ||||
* | 39820: vi-repeat handles multi-key bindings | Barton E. Schaefer | 2016-11-03 | 1 | -4/+6 |
| | |||||
* | 39813: fix keybuflen after ungetting extra keys from the end of keybuf in ↵ | Barton E. Schaefer | 2016-11-03 | 1 | -2/+5 |
| | | | | getkeymapcmd(). | ||||
* | 39815: Read input to end on parse error in $(...) inside a string. | Peter Stephenson | 2016-11-03 | 1 | -2/+11 |
| | | | | | This allows ${(z)} to output the whole string, although we can't do word splitting from the error onwards. | ||||
* | 39811: vi-repeat-change must not be the "motion" of vi-change, lest it ↵ | Barton E. Schaefer | 2016-11-02 | 1 | -1/+1 |
| | | | | infinitely repeat itself | ||||
* | 39777: $() is a valid empty command substitution | Peter Stephenson | 2016-10-30 | 1 | -1/+1 |
| |