Mikael Magnusson
72f7f904e8
Add match-bracket widget that takes a position and/or parameter to store result, and does no weird vi stuff
...
I use this in my zle-line-pre-redraw hook,
local -a hackcol=(red cyan)
local mpos cpos off
for off in 0 1; do
(( cpos = CURSOR - off ))
if (( cpos >= 0 )) && zle .match-bracket $cpos mpos; then
region_highlight+=("$((cpos)) $((cpos+1)) bold,bg=${hackcol[2]},fg=black"
"$((mpos)) $((mpos+1)) bold,bg=${hackcol[1]},fg=black")
break
fi
done
2015-09-27 02:28:41 +02:00
Mikael Magnusson
8ab150a867
Use a helper function for redraw hook and call from recursiveedit too
2015-09-27 02:17:07 +02:00
Mikael Magnusson
f04d219544
Move zle-line-pre-redraw out of zrefresh into zle event handling loop, if it can be called that
2015-09-27 02:16:59 +02:00
Mikael Magnusson
a36d7ab99b
Fix paste highlighting with zle-line-pre-redraw
2015-09-27 02:11:14 +02:00
Mikael Magnusson
9b07c6fe5a
add zle-line-pre-redraw
...
Go to some lengths to preserve $LASTWIDGET in pre-redraw
means we can't use the callzlehook function
has same workaround as 29643
2015-09-27 02:11:09 +02: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
Barton E. Schaefer
56ed4df898
36587: use +LINE:COLUMN to place the cursor when invoking emacs variants, for emacsclient
2015-09-22 08:52:52 -07:00
Han Pingtian
acf5bd766a
36586: fix completion match right anchor
2015-09-22 10:18:41 +01:00
Han Pingtian
d2910fd64f
36538: fix description of b and B completion match anchors
2015-09-22 09:58:59 +01:00
Jun-ichi Takimoto
53fcadc1f8
36578: option in a set has key "set-opt" in $opt_args
2015-09-22 11:16:32 +09:00
Peter Stephenson
729f6ddfff
36580: don't copy empty buffer in compmatch.
...
Also check if length is non-zero when buffer is empty.
2015-09-21 20:33:58 +01:00
Peter Stephenson
8b84419f45
36577: supplement 36559 to using LONG_MAX for 64-bit long
2015-09-21 14:42:22 +01:00
Frank Terbeck
5476e011f1
36576: _tmux: Fix tmux homepage URI
2015-09-21 14:56:50 +02:00
Frank Terbeck
d4a640775f
36575: _tmux: ‘lock-server’ option is gone in tmux.git
2015-09-21 14:56:50 +02:00
Jun-ichi Takimoto
9b35a04f98
36556: complete two or more options for zsh
2015-09-21 21:38:41 +09:00
Peter Stephenson
6fa5f0612b
unposted: typo in 36559
2015-09-21 13:27:35 +01:00
Jun-ichi Takimoto
05ec830c94
36574: new completion for the lldb debbuger
2015-09-21 21:08:29 +09:00
Barton E. Schaefer
bdcdb562d9
cf. users/20606: zcompile prepares scripts for sourcing, not for execution
2015-09-19 23:06:55 -07:00
Barton E. Schaefer
e61717b606
36566: check for regular file before lseek()
2015-09-19 23:05:44 -07:00
Barton E. Schaefer
4375d7b905
36562: sanitize $PWD on import, per POSIX
2015-09-19 23:03:39 -07:00
Peter Stephenson
df0d86b847
36559: test earlier for overflow in pattern range
2015-09-19 23:08:46 +01:00
Peter Stephenson
cc44b10da1
unposted: fix typo in test
2015-09-19 20:22:19 +01:00
Barton E. Schaefer
07796811b0
cf. 36554: remove unnecessary pointer dereference
2015-09-19 09:34:05 -07:00
Barton E. Schaefer
18d82a6c40
cf. users/20586: clean up cross-references to the "Autoloading Functions" doc
2015-09-18 10:10:35 -07:00
Barton E. Schaefer
18130bed7f
36552 plus test: fix Nularg string in quotestring(QT_DOLLARS)
2015-09-17 21:44:14 -07:00
Daniel Shahaf
9955bbdb9f
unposted: docs: Typo fixes
2015-09-14 20:33:03 +00:00
Daniel Shahaf
aeb1ac6a9c
unposted (see 36526): Update changelog for 36443.
2015-09-14 20:31:43 +00:00
Barton E. Schaefer
8a818381cf
36525: revert only the selfinsert() bit of 36496
...
selfinsert() may be called with incomplete wide character processing from
places other than getkeymapcmd()
2015-09-12 20:49:13 -07:00
Axel Beckert
9cb8c3f4b5
36523: Completion/…/_gphoto2: Replace --delete-files with --delete-file
2015-09-13 02:26:02 +02:00
Barton E. Schaefer
b957cdd21a
unposted: revert 36483 as multibyte is now handled by "zle .read-command"; adapt to new default behavior of zle_highlight for paste
2015-09-12 17:16:43 -07:00
Barton E. Schaefer
8e77fcb050
36522: unmetafy the argument of "zle -U"
2015-09-12 16:13:01 -07:00
Barton E. Schaefer
6ff0628182
36509: allocate hash table nodes with zshcalloc() to avoid garbage flag values
2015-09-12 09:53:39 -07:00
Jun-ichi Takimoto
8b1676e3b7
36491: Multibyte support for parameter expansion flags B,E,N
2015-09-12 20:35:56 +09:00
Daniel Shahaf
c76f4f96a6
36443: Set zle_highlight=(paste:standout) by default.
2015-09-11 21:49:39 +00:00
Daniel Shahaf
d37b59fe09
36443: Revert "35834: strip a final newline from pasted text: inserting is hard to tell apart from accepting it"
...
This reverts commit f17eb26a34
.
Conflicts:
ChangeLog
Src/Zle/zle_misc.c
2015-09-11 21:49:16 +00:00
Peter Stephenson
e1c0a947cc
Read full multibyte string early for self-insert
2015-09-11 21:40:45 +01:00
Peter Stephenson
560a23033d
unposted: update internal build string to 5.1.1-dev-0
2015-09-11 21:23:21 +01:00
Peter Stephenson
68405f31a0
unposted: version 5.1.1
2015-09-11 18:47:56 +01:00