Guillaume Maudoux
dae21874d4
39900: Add TERMINFO_DIRS special like TERMINFO.
...
Although this is a colon-separated array there is no tied array.
2016-11-20 20:24:15 +00:00
Peter Stephenson
368884a3aa
39995 (from 39977): Optimise string parameter assignment.
...
If setter is the standard one and string length is unchnaged we can
copy into place.
2016-11-20 19:41:52 +00:00
Mikel Ward
a2426747da
39978: more accurate doc for finding job by string
2016-11-20 19:18:34 +00:00
Daniel Shahaf
f35198d837
39992: setarrvalue: Allocate a correctly-sized array.
...
No memory was lost; the array was allocated with room for one (char *) element
more than was required.
2016-11-20 11:56:02 +00:00
Daniel Shahaf
6e1684e332
unposted (after 39952): Restore C89 compatibility.
2016-11-20 08:09:33 +00:00
Daniel Shahaf
968a59bfd0
39985: Document the [nyae] answers to the spelling correction prompt, $SPROMPT.
2016-11-20 05:34:21 +00:00
Daniel Shahaf
df8d219da3
39916 + 39930 + tweak: _git: Complete options and values for -c.
...
The "$@" in the option-names call is added in order to propagate the new (-S =) arguments.
This bifurcates _git-config() in order to provide completion for
% git -c <TAB>
% git -c foo=<TAB>
2016-11-18 02:11:05 +00:00
Peter Stephenson
a62e1640bc
39958: Add extra byte to PATH_MAX allocations.
...
This ensures we've got enough space for a null, although this
isn't always needed.
2016-11-17 19:49:17 +00:00
Daniel Shahaf
297471cf77
39921: __git_recent_branches: Remove erroneous parsing of partial ref names as tags.
...
In the reflog, partial ref names in the "from" field always represent names of
heads. (That is not true for the "to" field.) The parsing of tag names was
added in commit 39102 (317c96b64f
) for equivalence
with the then-previous implementation which used `git log $partial_ref_name`.
The equivalence was correct, however, the then-previous implementation was not,
since it would consider $partial_ref_name as a refs/tags/ name if a refs/heads/
name did not exist.
2016-11-17 15:32:05 +00:00
Daniel Shahaf
d7b57cc957
39922: __git_recent_branches: Fix an 'assertion' failure when two branches (refs) point to the same commit.
2016-11-17 15:32:04 +00:00
Daniel Shahaf
307da989d8
39917: Complete setsid(1) as a precommand
2016-11-17 15:32:04 +00:00
Daniel Shahaf
c392e6c620
39915: whence: Honor PATH_DIRS option for arguments that start with './' or '../'.
...
While here, add some docstrings.
2016-11-17 15:28:42 +00:00
Oliver Kiddle
0a6098a1d4
39962: bind vi case conversion widgets
...
u/U in visual mode and g~ from normal mode
2016-11-17 12:32:28 +01:00
Oliver Kiddle
48bdcd7713
39959: when repeating vi changes advance through the numbered killring registers
...
Also fix numeric arguments with vi-repeat-change: and argument passed
to the repeat replaces that previously saved with the change.
2016-11-17 12:28:08 +01:00
Oliver Kiddle
6d991ce177
39952: add registers special parameter to provide access to the vi register buffers from a zle widget function
2016-11-17 12:27:52 +01:00
Oliver Kiddle
7d2f805008
39945: allow further tab presses to move on to menu completion even when compstate[insert] is emptied
2016-11-16 09:42:49 +01:00
Barton E. Schaefer
98b7960c78
39943: no need to compute arrlen() in arrdup_max() when max == 0.
2016-11-15 10:04:14 -08:00
Peter Stephenson
921b39ac6b
39949: Special case for "-" in directory names.
...
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.
2016-11-15 18:01:32 +00:00
Peter Stephenson
e9dbfa8046
39947: Additional test for array subscripts.
...
This checks out-of-range multiple subscripts with and without
the (@) flag.
2016-11-15 16:01:32 +00:00
Jun-ichi Takimoto
3fd50d06a1
39937: fix a problem introduced by 39886.
...
$a[i,j] should become an empty array if i>j.
2016-11-15 00:17:35 +09:00
Peter Stephenson
99acd1e7f4
39906: More multibyte optimisations for US-ASCII.
...
This treats characters 0 to 0x7f as single byte US-ASCII along
the lines we already do in other places in the code.
2016-11-14 10:12:04 +00:00
Barton E. Schaefer
56e3d23b98
unposted: comment in zlecallhook() points to redrawhook() just in case
2016-11-13 18:15:23 -08:00
Barton E. Schaefer
cbb9ca3dfb
39934: if a widget execution fails, try to execute a corresponding immortal widget instead.
2016-11-13 15:52:09 -08:00
Barton E. Schaefer
7b8f638713
39933: more of zlecallhook() in redrawhook()
...
add commentary on some of the differences
2016-11-13 11:04:25 -08:00
Barton E. Schaefer
33052104e1
39929: clarify execute{,-last}-named-cmd
2016-11-13 11:00:16 -08:00
Barton E. Schaefer
9a09f97b60
unposted: Addenda to list of module hooks
2016-11-12 23:39:14 -08:00
Barton E. Schaefer
20de06dfbc
unposted: add list of standard module hooks with corresponding macro names
2016-11-12 23:17:36 -08:00
Paul Seyfert
2ba985fe5b
39920: extend yum completion
...
adding the following yum commands:
* update-to (just what update expands)
* upgrade-to (just what update expands)
* history (the actual tricky one)
* help (printing the available commands)
* load-transaction (_files)
* load-ts (_files)
* check (just what the man page suggested)
* reinstall (just what erase does - suggest installed packages)
* downgrade (just what erase does - suggest installed packages)
* repolist (just what the man page suggested)
* distribution-synchronization (just what erase does - suggest installed packages)
* distro-sync (just what erase does - suggest installed packages)
A few history commands don't get expanded.
Taken from the man page of yum 3.2.29.
Reindented file.
2016-11-12 02:40:49 +01:00
Barton E. Schaefer
d676d1bf4b
39893: use arrdup_max() to show explicitly the difference in two code branches
...
no functional change
2016-11-10 21:01:32 -08:00
Daniel Shahaf
c238057ccc
39874/0002 plus size=0 handling: zshcalloc: Remove code duplication. No functional change.
2016-11-11 04:37:59 +00:00
Daniel Shahaf
7139b73724
39874/0001: setarrvalue: Remove needless initialization.
2016-11-11 04:35:41 +00:00
Peter Stephenson
5f1700755f
39901: No EXIT trap on LHS of pipeline.
...
There is a special case if the LHS is a shell construct.
Add unit tests for both cases.
2016-11-10 10:37:27 +00:00
Oliver Kiddle
370b278565
39890: typo corrections in completion functions
2016-11-09 16:55:14 +01:00
Oliver Kiddle
496626ddb8
39888: update tmux completion for tmux 2.3
2016-11-09 16:55:14 +01:00
Oliver Kiddle
488d73c07d
39884: fix history-beginning-search-menu for history lines containing a pipe character
2016-11-09 16:55:13 +01:00
Barton E. Schaefer
dae3116026
39882: mention ${name:/pattern/replacement} in the itemized synopsis with the related forms; clarify doc.
2016-11-09 07:50:06 -08:00
Peter Stephenson
65ea1a033b
39887: no need to conditionalise assignment of strlen()
2016-11-09 13:45:11 +00:00
Peter Stephenson
a1633e09a7
39886 based on 39877: Optimise arrdup to arrdup_max.
...
Only duplicate as much of the array as is needed.
2016-11-09 11:54:57 +00:00
Sebastian Gniazdowski
49407686b4
39875: add dupstring_glen to avoid redundant strlen calls
2016-11-09 10:32:48 +00:00
Daniel Shahaf
d8786da0cd
39853: _subversion: Accept long options in the '--foo=bar' syntax.
2016-11-09 04:06:23 +00:00
Sebastian Gniazdowski
06e4ec853a
39871: cut down number of strlen()s in getstrvalue()
2016-11-08 15:14:08 +00:00
Peter Stephenson
a57977d01a
39870: ensure exit trap can always run
2016-11-08 13:02:57 +00:00
Jun-ichi Takimoto
dfb2f3f3d2
39857: add support for darwin, with improvements on linux etc.
2016-11-08 21:49:33 +09:00
Peter Stephenson
1683371fa5
unposted: follow up to 39867: don't need test against zero
2016-11-08 10:51:03 +00:00
Sebastian Gniazdowski
68a576bc55
39869: can transfer ownership of core of array when assigning
2016-11-08 10:49:13 +00:00
Peter Stephenson
39521515c3
39867, tweaked: Use cast to unsigned char to test character.
...
We want the unsigned variant to be <= 0x7f. Use the normal STOUC()
macro and turn this into a single test.
2016-11-08 10:09:26 +00:00
Peter Stephenson
5411cdf378
39856: module completion improvements.
...
Follow symbolic links when finding.
Use _multi_parts for paths when completing modules.
2016-11-07 14:49:00 +00:00
Jun-ichi Takimoto
0921a3537a
39855: new completion for jot command
2016-11-07 19:29:52 +09:00
Peter Stephenson
33b3489092
zsh-users/22083: attempt to explain what a word is in parameter substitution.
2016-11-07 10:04:14 +00:00
Daniel Shahaf
bb28726fa5
39840: _cpio: Declare variable's type correctly.
2016-11-07 05:21:19 +00:00