Barton E. Schaefer
22b4ededcf
33750: handle function autoloads for DEBUG_BEFORE_CMD
...
gettext2() lacked a case for the WC_AUTOFN word code, tripping a dputs()
on TRAPDEBUG the first time each autoloaded function was run.
2014-11-21 21:56:56 -08:00
Oliver Kiddle
69594a6cf0
33738: account for a selection in vi-replace-chars
2014-11-21 11:40:01 +01:00
Oliver Kiddle
58da0f495c
33730: vim style text objects for selecting words
2014-11-21 11:40:00 +01:00
Oliver Kiddle
0a4223d908
unposted: reindent large block
2014-11-17 23:03:10 +01:00
Oliver Kiddle
d29e02c1a3
33704: keybindings, documentation, tests and minor
...
fixes for vim style visual selection changes
2014-11-17 23:01:00 +01:00
Oliver Kiddle
36878852ef
33636: add support for a linewise visual selection mode
2014-11-17 22:50:34 +01:00
Oliver Kiddle
492b6cec28
33635: adapt region to function as vim style visual selection mode
2014-11-17 22:47:59 +01:00
Oliver Kiddle
0ea8f28e7b
33700: new widget for put in vim style visual selection mode
2014-11-17 16:32:04 +01:00
Oliver Kiddle
25cc978a99
33633: support vim style text objects
2014-11-17 00:49:32 +01:00
Oliver Kiddle
15fc2cd4f0
33632: use viopp and visual local keymaps if they exist
2014-11-17 00:49:31 +01:00
Oliver Kiddle
1e934556f7
33697: new vim style vi-backward-word-end widgets
2014-11-15 21:33:32 +01:00
Oliver Kiddle
13f3eec61d
33696: simple up/down line widgets that don't go through history lines
2014-11-15 21:31:29 +01:00
Oliver Kiddle
f26abf3a17
33695: fix various vi-indent problems and vi-swap-case on a blank line
2014-11-15 21:27:44 +01:00
Peter Stephenson
c01a178ece
Marc Finet: problems with working directory rationalisation.
...
Ensure the length of the directory is kept up to date.
Abort following symlinks as soon as there's an error.
2014-11-13 19:44:01 +00:00
Barton E. Schaefer
53344183e1
33656: different algorithm for "whence -am" to produce results more consistent with "whence -m"
...
This uses the scanmatchtable routine to collect the names that match the
input pattern, then uses the original -a path search loop to generate
the output, to avoid duplicating test conditions and output formats.
2014-11-13 09:20:46 -08:00
Oliver Kiddle
99382e689d
33669: allow an empty line to be yanked with yy
...
This by allocating 1 byte instead of 0 for the empty buffer.
2014-11-13 09:58:34 +01:00
Oliver Kiddle
f01188ec2a
33639: fix bug with vi operators on a blank line
...
and with backward bracket matching
2014-11-09 17:51:26 +01:00
Peter Stephenson
65f56b5656
33655: remove overlap of node flags
2014-11-08 21:59:58 +00:00
Peter Stephenson
0ccbc3873f
Handle -a option to whence in combination with -m.
2014-11-08 20:49:07 +00:00
Oliver Kiddle
36b8f83319
33624: keep region active when widget fails
2014-11-07 11:29:13 +01:00
Mikael Magnusson
a9004ce32f
33607: Fix some minor problems in zattr module
...
Remove the listattr call in zgetattr, it only caused no error to be output
when trying to retrieve an xattr from a file with no xattrs. When a file
had xattrs, it would just add an extra syscall for no good reason.
Always set an array parameter in zlistattr, this makes the returned value
much easier to use; in fact the _zattr completer didn't account for this
and zlistattr foo <tab> on a file with only one attribute did not work.
Almost all of the patch is only reindent, the only modification that's
not a pure deletions is:
- ret = 1 + (attr_len > val_len || attr_len < 0);
+ ret = 1 + ((val_len > 0 && attr_len > val_len) || attr_len < 0);
which makes sure we return the correct error in the new path due to the
removed listattr call. (If val_len is -1 due to no attribute existing,
it doesn't mean the user should retry the call because the attribute
grew in size).
2014-11-07 11:10:30 +01:00
Barton E. Schaefer
7abd611a23
33614 (based on RedHat BZ-978613): signal safety when updating global state in execshfunc()
2014-11-06 10:50:20 -08:00
Oliver Kiddle
c7ff843ecf
33604: fix change merging for vi mode where a change has just been undone
2014-11-05 22:50:48 +01:00
Oliver Kiddle
4b66ec003f
33596: make local keymap keybinding hide global keymap
...
binding that is a prefix of the local binding
2014-11-04 14:08:20 +01:00
Oliver Kiddle
73ca153159
33593: support numeric argument to vi-join
2014-11-03 00:36:00 +01:00
Oliver Kiddle
4d89ec25f1
33575: reset vi change start position if text is inserted
...
before it or on history movement
2014-11-03 00:31:57 +01:00
Peter Stephenson
023c2236e1
Treat exec from subshell as if forked
...
This removes weird behaviour when optimising the last command.
In particular SHLVL is correct from a subshell executed as the last
command.
2014-11-02 15:29:06 +00:00
Oliver Kiddle
6a29f66f8a
unposted: quash compiler warning
2014-10-31 18:00:05 +01:00
Peter Stephenson
ef4fb421f5
33582: don't include tcp.mdh in zftp.c.
...
It's a private module definition header that doesn't need
to be exposed.
2014-10-31 10:23:29 +00:00
Jérémie Roquet
52d37d7ff4
Take more care with errors from setuid().
...
This is to ensure the user is aware of errors unsetting the
PRIVELEGED option.
2014-10-31 10:02:36 +00:00
Oliver Kiddle
fd302c9837
33570, 33576: make killring/yank-pop work in vi mode after
...
vi-put-before and vi-put-after
2014-10-30 21:52:36 +01:00
Barton E. Schaefer
9d2cfa7af6
Merge branch 'master' of git://git.code.sf.net/p/zsh/code
...
Conflicts:
ChangeLog
2014-10-29 08:49:33 -07:00
Jun T
d36421d376
33566: quash null pointer constant compiler warning
2014-10-29 08:48:17 -07:00
Barton E. Schaefer
691547cda6
33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko in status message for INT/QUIT signals; check errflag in output loops
...
Two semi-related patches for keyboard interrupt handling in completion,
most importantly so that unexpectedly long completion listings can be
interrupted.
2014-10-29 08:45:57 -07:00
Oliver Kiddle
16cfa78aa9
33528: take notice of last column position when using vi-yank
...
and an upward cursor movement
2014-10-29 13:34:37 +01:00
Mikael Magnusson
ed90154e58
33562: Fix thinko in previous commit
2014-10-27 20:54:20 +01:00
Mikael Magnusson
ded97b8ed9
33561: The time builtin forgot to unmetafy TIMEFMT
2014-10-27 20:46:48 +01:00
Peter Stephenson
b4f7ccecd9
33531 with additions: retain status of exited background jobs.
...
Add linked list of unwaited-for background jobs.
Truncate at value of _SC_CHILD_MAX discarding oldest.
Remove old lastpid_status mechanism for latest exited process only.
Slightly tighten safety of permanently allocated linked lists so
that this doesn't compromise signal handling.
2014-10-26 17:47:42 +00:00
Peter Stephenson
11c3bc3d73
33480, slightly tweaked: fix for $' completion.
...
Improves case where completing after the $' but before any
closing quote, or if the closing quote is absent.
No other change --- we still don't attempt to exand the quotes if
we're inside them.
2014-10-24 09:54:55 +01:00
Oliver Kiddle
746b53d5d7
33520: correct cursor positioning following a vi mode yank operation
2014-10-24 00:18:32 +02:00
Oliver Kiddle
2fe4bfb100
33519: last character in the buffer can be cut, changed or yanked using vi-forward-char
2014-10-23 22:12:06 +02:00
Oliver Kiddle
bdedf7b40b
33518: add support for "_ vi buffer and arguments to vi-set-buffer from a zle widget
2014-10-23 21:47:23 +02:00
Oliver Kiddle
72c666fb4f
33514: even with a named vi buffer, we should update the default buffer
2014-10-23 17:14:19 +02:00
Oliver Kiddle
9d54f0ecde
33513: vi mode deletions should replace cut buffer not append to it
2014-10-23 17:10:37 +02:00
Oliver Kiddle
a39c3adece
33512: add support for "0 vi buffer and yank to it
2014-10-23 17:00:31 +02:00
Barton E. Schaefer
b6921a2b44
33515: suppress parser error messages in comp_match()
2014-10-22 20:21:10 -07:00
Barton E. Schaefer
2d4743ce50
33493: use correct command name in error messages about "ulimit" failure; restore internal copy of limits if setrlimit() fails, so the error won't repeat
2014-10-22 08:42:37 -07:00
Barton E. Schaefer
2d14c085b7
33445: fix handling of -s when combined with -i at shell invocation
...
Fixes a long-standing (25+ years) bug where using -i -s together did have
the documented effect of disabling command line script files but also had
the side-effect of invoking ZLE, thereby ignoring the redirected input.
2014-10-12 11:18:30 -07:00
Peter Stephenson
3b5d77d819
33423: expand ${(p)...} to allow ${(ps.$param.)...}
2014-10-12 17:52:11 +01:00
Barton E. Schaefer
605a73e415
33429: disallow non-integer values for HISTSIZE and SAVEHIST of "fc -p", and fix crash on zero values for same
2014-10-10 23:12:57 -07:00