1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00
Commit graph

9259 commits

Author SHA1 Message Date
Peter Stephenson
11ca38c6d9 users/20825: fix crash when complex completion hooks.
get_undo_current_change() needs protecting against execution in
completion environment.
2015-10-26 10:00:54 +00:00
Daniel Shahaf
8b51584246 36962: _git: Fix completion of RHS of refspecs.
Before this patch, 'git push $remote :<TAB>' completed branch names (as though
by `git branch -a`), instead of completing remote branch names sans the
${remote}/ prefix.
2015-10-25 18:52:29 +00:00
Daniel Shahaf
cc19bb96b9 36964: _git: Complete remotes branch names with slashes correctly.
For example, 'git push remote HEAD:foo/bar' creates such branches.
2015-10-25 18:52:13 +00:00
Daniel Shahaf
b4f7482e44 36960: _git: Enable slash matcher for more branch and tag completions, include 'git branch <TAB>' and 'git tag <TAB>'. 2015-10-25 18:47:35 +00:00
Daniel Shahaf
f890d442e2 36959: _git: Offer @~$n as completion of recent commits.
Suggested-by: Oliver Kiddle (users/20705)
2015-10-25 18:47:26 +00:00
Daniel Shahaf
17af119089 36958: _git: Fix recent commit completion descriptions.
The uniquifiers 'HEAD~$n' were incorrect when a recent commit was the second
parent of a merge commit.  Detect that case and print something correct
instead.
2015-10-25 18:47:11 +00:00
Daniel Shahaf
f8b2c13c97 unposted: _git: Fix 'commit object name' completion messages.
Offer the "this alternative is still valid, but I don't know to offer
completions for it" for hash completion but not for recent object completion;
the former is protected by a _guard and the latter incorrectly appeared also in
cases such as 'git log a/b<TAB>' which were not the start of a gitrevisions(7)
expression.
2015-10-25 18:39:34 +00:00
Jun-ichi Takimoto
a40417929c 36911: '-optarg' should not match optspec '-opt='
Remove the requirement that -xy= should come before -x= in the
list of optspecs passed to _arguments.
2015-10-25 23:42:03 +09:00
Barton E. Schaefer
2685bbc4ae Merge branch 'master' of git://git.code.sf.net/p/zsh/code
Conflicts:
	ChangeLog

Conflicts:
	ChangeLog
2015-10-24 13:57:03 -07:00
Barton E. Schaefer
506d592380 36943: restore scan for reclaimable blocks in freeheap()
That scan had been removed by 36834, but testing showed memory usage
climbing too high in cases where a new arena was always added at the
end of the heap list.
2015-10-24 13:43:21 -07:00
Daniel Shahaf
e3c68450d7 unposted: _beep completion: Actually hook it for the 'beep' command. 2015-10-24 20:42:31 +00:00
Daniel Shahaf
779b3112f8 36913 + 36945: vcs_info quilt: Pass patch subject lines to gen-applied-string
The format used is '${patchname} ${subject}', which is analogous to the git backend.
2015-10-24 20:42:26 +00:00
Daniel Shahaf
c62db9e7dc 36912: vcs_info quilt: Tolerate being in child of .pc's parent
Without this, gen-applied-string would only be set when .pc is a child of cwd,
not when it is a child of an ancestor of cwd.
2015-10-24 20:26:41 +00:00
Peter Stephenson
272119b774 unposted: small typo again 2015-10-24 21:00:30 +01:00
Peter Stephenson
c8c42d6ed5 unposted: small typo 2015-10-24 20:59:48 +01:00
Peter Stephenson
15490398d7 36944: extend fd management to zsocket 2015-10-24 20:48:47 +01:00
Peter Stephenson
1f6dcf9bcd 36941: Mark file descripors in ztcp as used.
Allow such file descriptors to be either internal and closed on exec
or external and so managed explicitly by module.
2015-10-24 20:24:35 +01:00
Daniel Shahaf
8e9a68ad14 unposted: vcs_info docs: Typo fix. 2015-10-22 12:29:42 +00:00
Barton E. Schaefer
b970ef6ef5 unposted: strdup should be ztrdup 2015-10-21 15:13:45 -07:00
Barton E. Schaefer
5cb75f0d41 36909: in getargs(), sanity-check the offsets for start and end of the requested words, in case of overflow 2015-10-21 15:13:17 -07:00
Barton E. Schaefer
b947789d7c 36871: move initial call to "zle .bracketed-paste-magic" to occur earlier in the function
Just in case any later initialization might have side-effects.
2015-10-21 14:47:41 -07:00
Daniel Shahaf
98875bcb05 36900: _git: stash names completion: Display log messages
The "$@" argument to compadd is removed because (I think) it contains a -J,
which conflicts with the -V.

Joint with Daniel Hahler.
2015-10-20 14:30:10 +00:00
Eric Cook
c6028f7387 36642: complete jail/unjail zfs subcommands on freebsd 2015-10-19 16:07:43 +02:00
Eric Cook
878d1272fd 36646: handle solaris/openzfs differences; only use -t share on solaris 2015-10-19 16:07:32 +02:00
Eric Cook
d8f8d3e534 36889: completion of system specific sockstat options 2015-10-19 11:33:17 +02:00
Matthew Martin
509c822b62 36869: use permissions to limit files completed for ssh identity files 2015-10-19 11:23:57 +02:00
Frank Terbeck
2e600b432a 36888: vcs_info: Prevent warn_create_global warning with '-preinit-' state
This is related to 33405. Turns out that not all other calls to
VCS_INFO_set are okay: With recent zsh versions the early call to that
function with the '-preinit-' argument causes a warning like this:

  VCS_INFO_set:9: math parameter maxexports created globally
                  in function VCS_INFO_set

This fixes it.
2015-10-18 20:40:18 +02:00
Peter Stephenson
21b6852b15 36864: new objdump completion and tweak to nm completion 2015-10-15 11:24:21 +01:00
Barton E. Schaefer
827d360776 36853: replace pushheap/popheap by NEWHEAPS/OLDHEAPS in doshfunc() to optimize memory management
Includes re-indentation that was not done in the posted patch.
2015-10-14 21:46:26 -07:00
Peter Stephenson
bab1fc5043 36856: cdr -p/-P to prune directory list 2015-10-14 14:23:16 +01:00
Barton E. Schaefer
643aca932a One crucial assignment accidentally lost from 36834 when merging 36836. 2015-10-11 21:48:10 -07:00
Barton E. Schaefer
ce929eb37e 36841: factor out and update the patterns that filter "uninteresting" functions out of the $funcstack display 2015-10-11 21:23:38 -07:00
Barton E. Schaefer
d77bf2ba88 36836: zhalloc() avoids re-scanning all heaps when the last known heap with free space does not have enough space
This is the second of two performance optimizations for situations where
all heap arenas in the list are mostly full.
2015-10-11 21:16:58 -07:00
Barton E. Schaefer
9f8e3e82dd 36834: freeheap preserves last allocated heap
This is the first of two optimizations to improve heap performance when
there are a large number of mostly-filled heap arenas.
2015-10-11 21:11:10 -07:00
Frank Terbeck
e245dd7193 36832: vcs_info: Remove dependency on "seq"
The "seq" utility is usually available on GNU systems only. This
exchanges calls to seq with pure zsh features. Also: Less forks are
good.
2015-10-11 12:54:30 +02:00
Frank Terbeck
7a1678767f 36830: vcs_info: Silence an error message with new git versions
Mikael informs me on IRC, that in new versions of git (he used 2.6.1)
where the "am" subcommand is now a builtin, a file that is used by the
git backend of vcs_info (namely .git/rebase-apply/msg-clean) is not
available anymore, leading to an annoying error message:

  VCS_INFO_get_data_git:232: no such file or directory: .git/rebase-apply/msg-clean

This patch checks for the availabiliy of the file before using it,
and adjusts the value of the dependant values accordingly.
2015-10-11 12:29:41 +02:00
Peter Stephenson
83a175795a 36780: Fix crash in ksh mode with -n and $HOME.
If home variable is NULL ensure HOME is unset.
2015-10-06 09:28:07 +01:00
Barton E. Schaefer
3f96063335 36773: limit CORRECT / CORRECT_ALL to directory names in cases where it is obvious that a directory is expected 2015-10-04 14:01:08 -07:00
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