Eitan Adler
110ffae9fe
40035: Cosmetic fixes for comments and documentation.
...
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00
Peter Stephenson
32daf2a0aa
40026: Fix for completion after redirection.
...
This could get confused about where we were in the command
line word array e.g. after the > of "!> .". Also take more care
if does confused, with debug output. Also neaten up one
obscure test.
2016-11-29 17:08:56 +00:00
Daniel Shahaf
3a83e481ab
unposted: Complete the $foo[(f)] flag.
2016-11-29 06:41:22 +00:00
Daniel Shahaf
a74294edbe
unposted: _git-config: Fix user.email completion to complete only bare email addresses.
2016-11-29 06:41:21 +00:00
Daniel Shahaf
1955cceec7
40011: Make $_comp_priv_prefix only declared when required, and use that to have chgrp offer all groups under doas, ssh, etc as well.
2016-11-28 07:16:39 +00:00
Daniel Shahaf
a81f280bfa
40010: builtins: Say 'bad option: +x', not 'bad option: -x', when +x was passed.
2016-11-28 07:16:38 +00:00
Daniel Shahaf
3a8727dc6b
40009: alias -L: Emit aliases that begin with a plus sign correctly.
2016-11-28 07:16:37 +00:00
Jun-ichi Takimoto
53e6b12bdf
40013: process zsh-specific time format extensions correctly
2016-11-26 16:36:21 +09:00
Oliver Kiddle
5dc7b35ff6
unposted: set new vichange flag for surround widget
2016-11-25 23:07:53 +01:00
Oliver Kiddle
a7f5db14b3
40020: new cscope completion
2016-11-25 23:05:54 +01:00
Laurent Arnoud
e34045819d
40018 + 40019: Add missing commands to Debian apt completion
...
Upstream ref
5aba18968d
2016-11-25 17:02:21 +00:00
Oliver Kiddle
5beb65a0f7
unposted: fix typo (=+ to +=)
2016-11-24 16:20:43 +01:00
Oliver Kiddle
8ec1a25994
40004: fix cache mechanism, complete groups and other minor improvements
2016-11-24 16:11:55 +01:00
Oliver Kiddle
2e44ac72f6
unposted: fix to compile on Solaris where curses.h has a #define for reg to register
2016-11-24 16:11:52 +01:00
Oliver Kiddle
3570172d3b
40003: include "0-"9 vi buffers in the registers associative array
2016-11-24 16:05:00 +01:00
Jun-ichi Takimoto
fe2d87767d
40005: call _date_formats from _date
...
also update both files for darwin etc.
2016-11-24 21:33:15 +09:00
Daniel Shahaf
b3a88a53d3
39982: $SPROMPT: Don't accept a spelling correction at space/tab.
...
The patch also downscopes a couple of local variables, with no
functional change.
2016-11-24 08:18:28 +00:00
Bart Schaefer
c0f95d07e7
unposted: clear ERRFLAG_ERROR before invoking immortal widget (cf. 39934)
...
Updates commit cbb9ca3d
2016-11-23 18:15:17 -08:00
Oliver Kiddle
07509be51a
unposted: add test case for partial completion matching of options with arguments
2016-11-23 11:57:02 +01:00
Oliver Kiddle
ee1222454e
unposted: fix printf -v to an array without format string reuse
2016-11-23 11:52:12 +01:00
Oliver Kiddle
85ba685813
39993: Tests for 39981.
2016-11-21 05:40:09 +00:00
Daniel Shahaf
1f5c734f5e
39981: Make compstate[to_end] skip suffix and hidden suffix, but not ignored suffix.
...
Motivated by 39930.
2016-11-21 05:40:09 +00:00
Daniel Shahaf
45c92778c6
unposted: Credit Sebastian for 39992.
2016-11-21 02:55:16 +00:00
Oliver Kiddle
cb5f100bd3
39986, 39989: improve handling of vi-repeat-change
...
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.
2016-11-20 23:59:48 +01:00
Oliver Kiddle
fe67ccacf1
39974: complete shared libraries for -e and -s options to ssh-add
2016-11-20 23:59:35 +01:00
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