1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-10 08:01:41 +01:00
Commit graph

9181 commits

Author SHA1 Message Date
Oliver Kiddle
f546ea64df users/20873: disable bracketed paste while running external editor from zle 2015-12-11 05:34:48 +01:00
Peter Stephenson
a5233fd01e 37378: New bindkey tests.
Also fix Meta bug on pattern match in zpty -r.
2015-12-10 17:51:41 +00:00
Peter Stephenson
67877f6055 37364: "test" and "[" handling of parentheses.
If three arguments, need to prefer binary operators if possible.

Need to look for full string for parentheses.
2015-12-09 16:40:08 +00:00
Peter Stephenson
7f5b2f5709 37348: Tests and fix for ${(q+)...}.
Needs dupstring() for empty string case.
2015-12-08 15:08:24 +00:00
Peter Stephenson
4105f79a3a 37347: Remove incorrect local for msgs in VCS info 2015-12-08 12:59:48 +00:00
Peter Stephenson
59de978c7e users/21071: Fix binding of multibyte sequences.
There was a problem if the first byte was already bound to
self-insert.
2015-12-08 10:56:17 +00:00
Peter Stephenson
f5b8efa7e0 37344: restore old printable quoting, add ${(q+)...}.
The \C- form is only used inside quotedzputs().

${(q+)...} outputs a quotedzputs() representation.
2015-12-07 21:49:07 +00:00
Peter Stephenson
9fb30cf572 37331: Use a single chracter to represent an MB_INCOMPLETE.
This is as it is likely to appear as a single character in output
even if it has multiple octets.
2015-12-07 18:54:03 +00:00
Peter Stephenson
0c2d823a79 37337: Delay freeing widget until not in use. 2015-12-07 14:32:52 +00:00
Peter Stephenson
54678f2e82 unposted: fix ChangeLog for previous change 2015-12-07 10:56:21 +00:00
Peter Stephenson
d290874c48 37335: fix tests after 34314 2015-12-07 10:36:45 +00:00
Peter Stephenson
dfd761058e 37310: effect of disabling typeset reserved word 2015-12-07 09:44:06 +00:00
Peter Stephenson
87670fb011 37326: comment only: multibyte string lenght/width counting 2015-12-06 16:39:57 +00:00
Peter Stephenson
5a76a5d34e 37314: upgrade quotedzputs() for non-printable output.
Use nicechar with $'..' quoting; upgrade nicechar() etc. to
use suitable output.
2015-12-06 15:33:02 +00:00
Daniel Shahaf
e14540ac02 37150: _git: Autocomplete .. for commit ranges
This patch makes three changes:

- Enable 'git diff o/m<TAB>' to complete to 'origin/master..' with the
  ".." being autoremovable.

  This is implemented by the first hunk.  That hunk is a functional
  subset of Oliver's users/20705, however, the latter hasn't been
  committed.

- Make typing "^" remove the "..", in light of the syntax "foo^..bar".

- Make typing "." _not_ remove the ".." but simply append it, since
  "foo...bar" is a valid and useful syntax.
2015-12-05 10:15:40 +00:00
Daniel Shahaf
6a3de994af 36957: _git: Apply matchspecs to filename completion such as 'git log f/b<TAB>' → 'foo/bar.txt's
This patch makes 'git log S/e<TAB>' expand to Src/exec.c.  The incumbent
code would run 'git ls-tree S/' and find no matches.
2015-12-05 10:15:39 +00:00
Peter Stephenson
16684952fb 37305: typeset -p can now output arrays on one line 2015-12-04 15:39:53 +00:00
Peter Stephenson
dc8c39efff 37303: test WARN_CREATE_GLOBAL negative cases. 2015-12-04 11:24:21 +00:00
Peter Stephenson
e40a14c5e4 37202: suppress WARN_CREATE_GLOBAL warnings after a fork 2015-12-04 10:44:33 +00:00
Peter Stephenson
04479a56e0 unposted: fix init_io() calls in previous change 2015-12-04 09:42:35 +00:00
Peter Stephenson
fc00e3a6b7 37294: Add ZSH_EXECUTION_STRING.
This shows the argument to shell option -c.
2015-12-04 09:28:26 +00:00
Daniel Shahaf
5ecf332e84 37253: Constify two local variables. 2015-12-03 23:53:03 +00:00
Daniel Shahaf
07a300365f unposted: Remove uneeded executability bits. 2015-12-03 23:49:14 +00:00
Daniel Shahaf
7154b8314d 37296: Avoid needless calloc(). 2015-12-03 23:47:24 +00:00
Daniel Shahaf
253df6d4bb 37295: kill-word-match: Join kills 2015-12-03 23:47:24 +00:00
Peter Stephenson
2ec61f3a0b unposted: Update internal version to 5.2-dev-0.
Also add entry for 5.2 release in ChangeLog.
2015-12-03 12:38:31 +00:00
Peter Stephenson
c86c20ae57 unposted: zsh 5.2 2015-12-02 18:55:11 +00:00
Daniel Shahaf
ebb0d7ddaa 37256: _debchange (_dch): Update completion. 2015-11-30 16:02:47 +00:00
Daniel Shahaf
502d55c014 37252: vcs_info git: Compute %b correctly with "rebase --onto" of detached heads. (Follow-up to 36725.) 2015-11-30 03:42:47 +00:00
Daniel Shahaf
4202c90b6d 37254: No functional change: change code layout in preparation for 37253. 2015-11-30 03:42:46 +00:00
Daniel Shahaf
503fa5cd9e 37250: No functional change: rename local variables. 2015-11-30 03:42:45 +00:00
Peter Stephenson
fa40bfac03 unposted: 5.1.1-test-3 2015-11-29 21:50:45 +00:00
Daniel Shahaf
324a82b360 unposted (after 37243): Explain the breadcrumb by adding a comment. 2015-11-28 17:48:26 +00:00
Barton E. Schaefer
c7c51eca16 Fix conflicts in ChangeLog 2015-11-27 11:22:49 -08:00
Barton E. Schaefer
026cb6a812 37243: too many problems with inserting a line into B02, instead add a placeholder and substitute for it.
unposted: %cleanup block is not called when %prep sets ZTST_unimplemented,
so avoid leaving a mess
2015-11-27 11:20:33 -08:00
Peter Stephenson
8efa4b4088 unposted: ZCALCPROMPT created globally in zcalc 2015-11-27 09:31:46 +00:00
Daniel Shahaf
694aee4c3d 37214: 'prompt walters': Don't export PS1 2015-11-27 07:27:23 +00:00
Daniel Shahaf
06a24d3747 37163: Remove curl completion 2015-11-27 07:27:09 +00:00
Daniel Shahaf
2ab41d508d 37215: _regex_words: Don't add mismatched parentheses
I ran into this in the wild¹, it manifested as the following error message:

    zregexparse:4: not enough regex arguments

¹ https://bug.tasktools.org/browse/TW-1729
2015-11-27 07:26:38 +00:00
Barton E. Schaefer
3d962aacd5 37229: non-local assignment to a parameter name whose outermost declaration is private, is an error rather than a silent no-op.
Also fix %prep sed expression for Solaris.
2015-11-26 12:43:08 -08:00
Barton E. Schaefer
211889c982 Comment should say export is equivalent to typeset -xg 2015-11-26 11:15:51 -08:00
Barton E. Schaefer
2bab9f0394 37225: fix test for typeset with zsh/param/private 2015-11-26 09:30:05 -08:00
Barton E. Schaefer
e4aec8c197 37224: delete obsolete comment 2015-11-26 09:28:59 -08:00
Matthew Martin
d590646673 37100: update for sysctl completion 2015-11-26 09:37:50 +00:00
Peter Stephenson
78abc72f64 unposted: 5.1.1-test-2 2015-11-25 19:30:26 +00:00
Barton E. Schaefer
9e06828a7f 37208: check for restricted parameter before changing from unset to set
Also, return NULL from setnparam() on failure to retrieve value (avoids
null-pointer dereference); add some expository comments
2015-11-23 21:48:49 -08:00
Barton E. Schaefer
e73b73e0b0 37208: re-run the "typeset" tests with the private module loaded 2015-11-23 21:45:24 -08:00
Barton E. Schaefer
4e90e27036 37208: assignment in a nested scope should not change private parameters in the outer scope from unset to set
Bug remains that the attempt does not generate a warning
2015-11-23 21:43:14 -08:00
Barton E. Schaefer
bc30d6bfca 37206: fix ${(t)param} for "typeset -H param" 2015-11-23 19:18:44 -08:00
Barton E. Schaefer
4e87006fc7 37205: update documentary comment 2015-11-23 11:27:22 -08:00