1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-23 17:01:05 +02:00
Commit graph

9021 commits

Author SHA1 Message Date
Barton E. Schaefer
cb26e11c70 unposted: back out 36707, add test case for 36766 2015-10-03 22:11:09 -07:00
Barton E. Schaefer
b581c3fece 36766: fix incorrect reset of noerrexit during "if" conditions 2015-10-03 19:40:14 -07:00
Peter Stephenson
faeb9555d3 36760: more care with already unmetafied pattern trial strings 2015-10-03 20:25:57 +01:00
Mikael Magnusson
64061e504f 36754: Functions/TCP: Tweak some usage output in the tcp_* functions 2015-10-03 00:05:40 +02:00
Mikael Magnusson
0626be9e3c unposted: define zle_usable before using it (reported in 36741) 2015-10-02 20:41:53 +02:00
Jun-ichi Takimoto
e3bc9aa228 36732: _zsh now complets script args; also support -s, -b 2015-10-02 22:11:43 +09:00
Mikael Magnusson
fa72e54712 unposted: zle_thingy: return a value in bin_zle_flags 2015-10-01 20:24:45 +02:00
Mikael Magnusson
99aff5bb0c unposted: bracketed-paste-url-magic: actually do what the comment says 2015-10-01 20:16:24 +02:00
Peter Stephenson
807a8338a3 36737: Ensure we don't dreference unterminated zero-length string 2015-10-01 16:21:18 +01:00
Peter Stephenson
196e6a0ec0 36735: add ~/.zcalcrc handling to zcalc 2015-10-01 15:55:01 +01:00
Andrew Janke
8bf72dd65b 36729: fix some typos in distro docs 2015-10-01 09:49:44 +01:00
Peter Stephenson
9064483b6c 36722: allow git range to complete after ^.
Take account of backslash quoting.
2015-10-01 09:47:15 +01:00
Peter Stephenson
8877783b2f Merge branch 'master' of https://git.code.sf.net/p/zsh/code 2015-10-01 09:44:56 +01:00
Barton E. Schaefer
bc2e73ba4c users/20672: missing "do" in gettext2() for "select" 2015-09-30 20:02:53 -07:00
Barton E. Schaefer
2bf4f667fb 36707: distinguish ERR_RETURN value of retflag so that execif() can ignore it in the test sublist 2015-09-30 20:01:13 -07:00
Barton E. Schaefer
d1a810b000 remove sentence fragment 2015-09-30 19:58:43 -07:00
Mikael Magnusson
76da752fd7 36692: bracketed-paste-url-magic: simpler alternative for handling pasted urls 2015-10-01 03:55:21 +02:00
Mikael Magnusson
a855d7bd24 36709: zle -f from inside widget to set flags and make yank start/end zle params writable 2015-10-01 03:51:44 +02:00
Daniel Shahaf
a90cf551ef 36725: vcs_info git: Compute %b correctly when "git am"-ing onto detached heads.
Before this patch, $gitbranch would be set to empty, which caused
VCS_INFO_get_data_git to early out with a failure status¹, consequently
$vcs_info_msg_0_ would be empty.

¹ via the 'if [[ -z ]]' block around line 170.
2015-09-30 21:43:37 +00:00
Daniel Shahaf
cd1cda9d57 36725: vcs_info git: Compute %b correctly when rebasing detached heads.
This sets the %b expando to the hash of the before-the-merge HEAD, rather
than to the literal string "detached HEAD".  That hash is already available
via the gen-applied-string hook.
2015-09-30 21:43:37 +00:00
Daniel Shahaf
7ac34a3055 36725: vcs_info git: Compute %b correctly when merging to detached heads.
The %b expando should be the hash prior to the merge.  The hash of the merge
result is available as the %i expando and via the gen-applied-string hook.
2015-09-30 21:43:37 +00:00
Jun-ichi Takimoto
756526eef3 36697: handle options of _arguments correctly 2015-09-30 23:56:14 +09:00
Matthew Martin
007f249a8e 36693: arithmetic rounds towards zero, document 2015-09-30 14:22:59 +01:00
Peter Stephenson
5336587307 36711: Allocate unmetafied pattern trial string on the heap 2015-09-30 10:19:16 +01:00
Barton E. Schaefer
a5a6c58ff8 unposted: fix typo in comment. 2015-09-29 13:36:43 -07:00
Peter Stephenson
d07783628e 36700: unmetafy early for parameter match 2015-09-29 19:47:21 +01:00
Peter Stephenson
f9d7651c25 36682: expand pattern interface to optimise unmetafication 2015-09-28 20:31:51 +01:00
Daniel Shahaf
a5cb918d40 unposted: Test for 36669 2015-09-28 18:13:52 +00:00
Daniel Hahler
45bdc87a1f 36601: vcs_info: handle missing .git/rebase-apply/{next,msg-clean}
When pressing Ctrl-C after `git am`, only `last` exists in
`.git/rebase-apply/`, which is empty.

This patch fixes it to fall back to "no patch applied" then.
2015-09-28 20:03:12 +02:00
Barton E. Schaefer
4bed2cf256 36669: fix ${(z)...} of an an incomplete math expression by restoring "((" at the front of the token 2015-09-27 23:56:38 -07:00
Daniel Shahaf
6d6b63c884 unposted: Update link to my ChangeLog generator script,
on account of patching it to handle commas properly (thanks Mikael).
2015-09-28 01:23:13 +00:00
Mikael Magnusson
d85a1fcd88 unposted: Fix broken case condition and "qualifer" typo 2015-09-28 02:24:54 +02:00
Daniel Shahaf
2654cb43f6 36651: WARN_CREATE_GLOBAL += math expressions
Without this, '() { (( x=42 )) }' and '() { for (( i=0; … )) }' wouldn't warn
about $x and $i, respectively, being created global.
2015-09-27 23:52:25 +00:00
Matthew Martin
36abe20c0f 36653: OpenBSD's usermod has no -a flag 2015-09-27 23:41:45 +00:00
Barton E. Schaefer
7e4784f901 36663: replace obsolete "autobins" commentary with "autofeatures" 2015-09-27 12:43:25 -07:00
Barton E. Schaefer
c2254cfe2c 36661: replace obsolete "autobins" setting with "autofeatures" 2015-09-27 12:43:03 -07:00
Jun-ichi Takimoto
0cfa2dcfc4 36631: separate _zsh from _sh
Do all the completion for zsh by _arguments
2015-09-28 00:09:03 +09:00
Barton E. Schaefer
50721a1986 36641: fix multibyte handling in incremental search during menu selection 2015-09-26 13:46:20 -07:00
Daniel Shahaf
92584634d3 unposted (see 36633): _hg: Enable --option=value syntax and disable '-xy Xarg Yarg' syntax
This simply removes the '-w' argument to _arguments and changes
{-x+,--foo} to {-x+,--foo=} throughout the file.
2015-09-26 00:21:18 +00:00
Daniel Shahaf
8165b488cb unposted: zle: Document the C helper function processcmd().
Also, tweak the docstring of zlelineasstring().
2015-09-25 23:38:41 +00:00
Christoph Mathys
61fa5f66f0 36626: _hg: completion for 'hg bookmarks' 2015-09-25 23:20:09 +00:00
Peter Stephenson
649d06a8cd 36630: new function zsh_directory_name_generic 2015-09-25 21:30:34 +01:00
Barton E. Schaefer
377e2400b7 36623: document bracketed-paste-magic and url-quote-magic; add cross-reference to vim text object widgets 2015-09-24 18:46:27 -07:00
Mikael Magnusson
bd5806aa0a 36603: glob: fix dirfd leak during Y shortcut qualifier 2015-09-24 20:52:56 +02:00
Daniel Shahaf
4c935b9f85 unposted: _hg: Declare $expl as an array 2015-09-24 16:15:18 +00:00
Christoph Mathys
1aafc028b3 36613: _hg: extend completion for hg push to support branch and bookmark 2015-09-24 16:12:57 +00:00
Barton E. Schaefer
8d5c0c7760 36604: fix getopts+shift calculation 2015-09-23 23:16:38 -07:00
Daniel Shahaf
1b5987cdb1 unposted: Followup to 36586: Change C99 comment syntax to the C89 syntax. 2015-09-23 21:41:13 +00:00
Eric Cook
002d68525c 36571: Completion for zsocket and updated losetup's completion 2015-09-23 01:14:08 +02:00
Mikael Magnusson
0f2f34363d unposted: replace multi-byte curly-quotes with plain quotes in ChangeLog entry 2015-09-23 01:13:26 +02:00